Roo/XComponent.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 06:17:30 +0000 (14:17 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 06:17:30 +0000 (14:17 +0800)
Roo/XComponent.js

index 8ec6f66..96f08de 100644 (file)
@@ -678,7 +678,25 @@ Roo.apply(Roo.XComponent, {
         
         
     },
-       
+    /**
+     * Overlay a set of modified strings onto a component
+     * This is dependant on our builder exporting the strings and 'named strings' elements.
+     * 
+     * @param {Object} element to overlay on - eg. Pman.Dialog.Login
+     * @param {Object} associative array of 'named' string and it's new value.
+     * 
+     */
+       overlayStrings : function( component, strings )
+    {
+        if (typeof(component['_named_strings']) == undefined) {
+            throw "ERROR: component does not have _named_strings";
+        }
+        
+        
+        
+        
+    }
+    
        
        /**
         * Event Object.