ludoDB.Factory Class
Factory for automatic creation of children from server ludoDB config. This class is used internally by ludoJS when you specify a ludoDB config object in your view configuration.
Constructor
ludoDB.Factory
-
config
Parameters:
-
config
Object
Example:
new ludo.Window({ title:'LudoDB Integration', stateful:true, layout:{ 'width':500, height:400 }, children:[ { 'layout':{ type:'linear', orientation:'vertical' }, 'ludoDB':{ // Creates children of this window automatically based on LudoDB model config 'resource':'LudoJSPerson', 'arguments':1, 'url':'../ludoDB/router.php' } } ], buttons:[ { type:'form.SubmitButton', value:'Save' }, { type:'form.CancelButton', value:'Cancel' } ] });