Index ¦ Archives  ¦ Atom  ¦ RSS

Enyo - Common Panes Toolbar

Turns out, most SlidingPanes have a Toolbar with a GrabButton on the bottom so it seems like SlidingPane should have an option to automatically include one such Toolbar. Since it doesn't, I've written a quick kind that creates a toolbar with the little GrabButton for adding to the components of a SlidingPane to quickly get a nice, common feel to their panes.

enyo.kind({
    name:"GrabBar",
    kind:"Toolbar",
    components:[{kind:"GrabButton"}],
    className:"enyo-toolbar-light"
});

If you want the default dark Toolbar, just remove the className line.

© Fahrzin Hemmati. Built using Pelican. Theme by Giulio Fidente on github.