Hi,
Here is a code tested in current showcase:
From what I have seen in the code tileGrid.makeTile correctly gets constructor in
, and passes it to createAutoChild, but later in getAutoChildClass it is again overwritten with this[childName + this._$Constructor] == this["tile" + "Constructor"] == tileGrid.tileConstructor.
Best regards,
Janusz
Here is a code tested in current showcase:
Code:
isc.TileGrid.create({ tileConstructor: "Button", data: [ { tileConstructor: "Label", tileProperties: { getInnerHTML: function() { return this.getClassName() }} }, { tileConstructor: "Canvas", tileProperties: { getInnerHTML: function() { return this.getClassName() }} }, ] });
Code:
var theConstructor = record.tileConstructor ? record.tileConstructor : this.tileConstructor;
Code:
return this[childName + this._$Constructor] || (dynamicProperties ? dynamicProperties._constructor : null) || (childProperties ? childProperties._constructor : null) || (childDefaults ? childDefaults._constructor : null) || defaultConstructor || isc.Canvas;
Janusz
Comment