PDA

View Full Version : [OPEN] [Docs] explain mixinId



valio
13 Jul 2015, 1:59 AM
When searching the API docs for "mixinId", only classes which have defined a mixinId are provided.

Neither any of these classes, nor any of the classes that explain mixins explain the reasoning for the mixinId config.

Request: Add an explanation in a suiting place (e.g. at Ext.Class.mixins (http://docs.sencha.com/extjs/6.0/6.0.0-classic/#!/api/Ext.Class-cfg-mixins) or as Ext.Class.mixinId) about the reasoning behind the mixinId config for classes; such as the one taken from this blog post (https://www.sencha.com/blog/using-plugins-and-mixins-in-your-sencha-apps/)


You may want to fetch a reference to a class’s mixin from the class instance. This is done using a reference to the owning class instance’s “mixins” property followed by the id of the mixin (e.g. “this.mixins.util”). We recommend always setting a unique mixin id when defining your mixin class. There are three ways that mixin ids may be set/determined [...]

greg.barry
13 Jul 2015, 10:29 AM
Thanks vallo! I have opened a ticket in our bug tracker.