Announcement

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

    Horizontal "SectionStack"?

    Hi there,
    I like the look of the SectionStack object, however for my layout needs it would be preferable to have the sections laid out horizontally rather than vertically... In the API there's an HStack object but this basically seems to work just like the HLayout, so the sections aren't resizable etc.
    I'm sure that it's possible to write a horizontal version to do what I want, but before I take the time to do that, I just wanted to find out if anyone knows of this kind of functionality built-in...
    (If it's not clear what I'm looking for, basically i'll have a treegrid on the left, with a details view on the right that shows details for a highlighted row... and this details view should be collapsible but slides open when a row is selected.)

    cheers
    Dan

    #2
    Hi Dan,

    If you just set vertical:false, you'll have a functional but ugly horizontal SectionStack. To fully utilize it in this mode you'll need to provide a custom sectionHeaderClass that is also vertical:false and uses rotated media, and you'll need to do something to reorient the titles, which can be as crude as v<br>e<br>r<br>t<br>i<br>c<br>a<br>l text.

    However note that with an ordinary HLayout, setShowResizeBar(true) on members produces a "SnapBar" that supported user expand/collapse, and just calling animateHide() / animateShow() on layout members produces a slide-out animation.

    Comment

    Working...
    X