Archive of UserLand's first discussion group, started October 5, 1998.

Re: expansionState

Author:Brad Pettit
Posted:9/16/2000; 4:16:09 PM
Topic:Outline XML files need a name
Msg #:21404 (In response to 21398)
Prev/Next:21403 / 21405

Jim, I agree with you that isExpanded (or a shortened version) would be more intuitive and more likely to be used than the expansionState array. The symmetry with isComment and isBreakpoint feels right as well.

Expansion could also work as an attribute that told how many levels were expanded.

By default, 0, no levels below the current level. If a level is expanded, then its children's expansion value is used to control whether they are expanded. Fully expanded would be one attribute with a value of 999 at the root. Fully collapsed would be no extra attributes. The typical behavior of expanding one node to reveal one level would result in one attribute being added to the node with a value of 1, followed by an optional traversal of the children to remove any expDepth attributes they contained.

It fits in with rules, as well.

--bp


There are responses to this message:


This page was archived on 6/13/2001; 4:56:43 PM.

© Copyright 1998-2001 UserLand Software, Inc.