Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Small enhancement for Deck

    Hi,

    For TabSets we have autoChild support so we can set autoChildren on the individual panes. This seems to be missing in the Deck implementation. For now we have subclassed Deck and overridden the default 'setPanes' method as follows:

    Code:
    setPanes: function (panes) {
        if (panes == null) panes = [];
        var currentPane = isc.isA.String(this.currentPane) && this.currentPane.indexOf("autoChild:") === 0 ? this.currentPane : null;
        for ( let x = 0; x < panes.length; x++ ) {
            let pane = panes[x];
            if (!isc.isA.Canvas(pane)) {
                var setAsCurrent = (currentPane === pane);
                pane = this.createCanvas(pane);
                if ( setAsCurrent ) this.currentPane = pane;
                panes[x] = pane;
            }
        }
        this.Super("setPanes", arguments);
    }
    It would be quite handy if this could be incorporated into the main release, what do you guys think?

    #2
    Deck support for autoChild panes has been added to release 11.1 as of the build on July 26.

    Comment


      #3
      Originally posted by Isomorphic View Post
      Deck support for autoChild panes has been added to release 11.1 as of the build on July 26.
      Thank you!

      Comment

      Working...
      X