ReorderableListFlags Enumeration |
Namespace: Rotorz.ReorderableList
[FlagsAttribute] public enum ReorderableListFlags
Member name | Value | Description | |
---|---|---|---|
DisableReordering | 1 | Hide grab handles and disable reordering of list items. | |
HideAddButton | 2 | Hide add button at base of control. | |
HideRemoveButtons | 4 | Hide remove buttons from list items. | |
DisableContextMenu | 8 | Do not display context menu upon right-clicking grab handle. | |
DisableDuplicateCommand | 16 | Hide "Duplicate" option from context menu. | |
DisableAutoFocus | 32 | Do not automatically focus first control of newly added items. | |
ShowIndices | 64 | Show zero-based index of array elements. | |
DisableClipping | 128 | Do not attempt to clip items which are out of view. |
Multiple flags can be specified if desired:
var flags = ReorderableListFlags.HideAddButton | ReorderableListFlags.HideRemoveButtons;
ReorderableListGUI.ListField(list, flags);