Interface Separator
interface Separator {
condition?: boolean | (() => boolean);
onPress?: (
data?: {
event?: PointerEvent | KeyboardEvent;
focusSource?: A11yFocusSource;
item?: Separator;
},
) => OnPressResult
| Promise<OnPressResult>;
separator: string;
}
condition?: boolean | (() => boolean);
onPress?: (
data?: {
event?: PointerEvent | KeyboardEvent;
focusSource?: A11yFocusSource;
item?: Separator;
},
) => OnPressResult
| Promise<OnPressResult>;
separator: string;
}
                 
                    
                  Hierarchy
              
              - TJSMenuData.Item.Common<Separator>- Separator (View Summary)
 
Index
Properties
Properties
Optionalcondition
condition?: boolean | (() => boolean)
If a boolean and false or a function that invoked returns a falsy value this item is not added.
OptionalonPress 
onPress?: (
data?: {
event?: PointerEvent | KeyboardEvent;
focusSource?: A11yFocusSource;
item?: Separator;
},
) => OnPressResult
| Promise<OnPressResult>
data?: {
event?: PointerEvent | KeyboardEvent;
focusSource?: A11yFocusSource;
item?: Separator;
},
) => OnPressResult
| Promise<OnPressResult>
A callback function to invoke; The data object contains the originating event, menu item data, and an A11yFocusSource object to potentially handle later in a continuation of user interaction.
To defer immediate application of the A11yFocusSource return true indicating a focus continuation.
separator
separator: string
A menu item separator; only 'hr' supported.
Defines a separator between items.