The possible policies for calculating the size of the tab of a GroupNodeStyle instance.
Type Details
- yFiles module
- view
See Also
Constants
The effective tab width depends on GroupNodeStyle properties, the size of the node, and the preferred width of tab or tab background labels.
Remarks
If there is a tab label (i.e., a label that uses GroupNodeLabelModel's tab parameter), the effective width of the tab will grow to contain the preferred width of the label. The value of tabWidth is treated as minimum width for the tab in this case.
If there is a tab background label (i.e., a label that uses GroupNodeLabelModel's tab background parameter ) but no tab label, the effective width of the tab will shrink such that the tab background area is wide enough to contain the preferred width of the label. The value of tabWidth is treated as maximum width for the tab in this case.
See Also
The effective tab size depends on GroupNodeStyle properties and the size of the node.
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - GroupNodeStyleTabSizePolicy
- The value to convert to an enum constant.
Returns
- ↪GroupNodeStyleTabSizePolicy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - GroupNodeStyleTabSizePolicy
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.