text: Ext.data.JsonP.Ext_mixin_Factoryable({"tagname":"class","name":"Ext.mixin.Factoryable","autodetected":{},"files":[{"filename":"Factoryable.js","href":"Factoryable.html#Ext-mixin-Factoryable"}],"since":"5.0.0","members":[{"name":"factoryConfig","tagname":"property","owner":"Ext.mixin.Factoryable","id":"property-factoryConfig","meta":{}}],"alternateClassNames":[],"aliases":{},"id":"class-Ext.mixin.Factoryable","short_doc":"This mixin automates use of Ext.Factory. ...","component":false,"superclasses":[],"subclasses":[],"mixedInto":["Nodext.database.Connection","Nodext.database.action.Base","Nodext.database.query.Builder","Nodext.http.session.Base","Nodext.http.session.store.Base"],"mixins":[],"parentMixins":[],"requires":[],"uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Mixed into</h4><div class='dependency'><a href='#!/api/Nodext.database.Connection' rel='Nodext.database.Connection' class='docClass'>Nodext.database.Connection</a></div><div class='dependency'><a href='#!/api/Nodext.database.action.Base' rel='Nodext.database.action.Base' class='docClass'>Nodext.database.action.Base</a></div><div class='dependency'><a href='#!/api/Nodext.database.query.Builder' rel='Nodext.database.query.Builder' class='docClass'>Nodext.database.query.Builder</a></div><div class='dependency'><a href='#!/api/Nodext.http.session.Base' rel='Nodext.http.session.Base' class='docClass'>Nodext.http.session.Base</a></div><div class='dependency'><a href='#!/api/Nodext.http.session.store.Base' rel='Nodext.http.session.store.Base' class='docClass'>Nodext.http.session.store.Base</a></div><h4>Files</h4><div class='dependency'><a href='source/Factoryable.html#Ext-mixin-Factoryable' target='_blank'>Factoryable.js</a></div></pre><div class='doc-contents'><p>This mixin automates use of <code><a href=\"#!/api/Ext.Factory\" rel=\"Ext.Factory\" class=\"docClass\">Ext.Factory</a></code>. When mixed in to a class, the <code>alias</code> of the\nclass is retrieved and combined with an optional <code>factoryConfig</code> property on that class\nto produce the configuration to pass to <code><a href=\"#!/api/Ext.Factory\" rel=\"Ext.Factory\" class=\"docClass\">Ext.Factory</a></code>.</p>\n\n<p>The factory method created by <code><a href=\"#!/api/Ext.Factory\" rel=\"Ext.Factory\" class=\"docClass\">Ext.Factory</a></code> is also added as a static method to the\ntarget class.</p>\n\n<p>Given a class declared like so:</p>\n\n<pre><code> <a href=\"#!/api/Ext-method-define\" rel=\"Ext-method-define\" class=\"docClass\">Ext.define</a>('App.bar.Thing', {\n     mixins: [\n         '<a href=\"#!/api/Ext.mixin.Factoryable\" rel=\"Ext.mixin.Factoryable\" class=\"docClass\">Ext.mixin.Factoryable</a>'\n     ],\n\n     alias: 'bar.thing',  // this is detected by Factoryable\n\n     factoryConfig: {\n         defaultType: 'thing',  // this is the default deduced from the alias\n         // other configs\n     },\n\n     ...\n });\n</code></pre>\n\n<p>The produced factory function can be used to create instances using the following\nforms:</p>\n\n<pre><code> var obj;\n\n obj = App.bar.Thing.create('thing'); // same as \"new App.bar.Thing()\"\n\n obj = App.bar.Thing.create({\n     type: 'thing'       // same as above\n });\n\n obj = App.bar.Thing.create({\n     xclass: 'App.bar.Thing'  // same as above\n });\n\n var obj2 = App.bar.Thing.create(obj);\n // obj === obj2  (passing an instance returns the instance)\n</code></pre>\n\n<p>Alternatively the produced factory is available as a static method of <code><a href=\"#!/api/Ext.Factory\" rel=\"Ext.Factory\" class=\"docClass\">Ext.Factory</a></code>.</p>\n        <p>Available since: <b>5.0.0</b></p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-property'>Properties</h3><div class='subsection'><div id='property-factoryConfig' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.mixin.Factoryable'>Ext.mixin.Factoryable</span><br/><a href='source/Factoryable.html#Ext-mixin-Factoryable-property-factoryConfig' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.mixin.Factoryable-property-factoryConfig' class='name expandable'>factoryConfig</a> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><span class=\"signature\"></span></div><div class='description'><div class='short'>If this property is specified by the target class of this mixin its properties are\nused to configure the created Ext....</div><div class='long'><p>If this property is specified by the target class of this mixin its properties are\nused to configure the created <code><a href=\"#!/api/Ext.Factory\" rel=\"Ext.Factory\" class=\"docClass\">Ext.Factory</a></code>.</p>\n</div></div></div></div></div></div></div>","meta":{}});