Interface: IListProps
Hierarchy
Omit
<ComponentProps
<"ul"
>,"onSelect"
>↳
IListProps
Properties
current
• Optional
current: string
Current active
Defined in
disable
• Optional
disable: UniqueId
It's used to disable specific item, the value of disable is id string
Defined in
mode
• Optional
mode: "horizontal"
| "vertical"
Default is vertical mode
Defined in
Methods
onClick
▸ Optional
onClick(event
, item?
): void
Listen to the click event of List
Parameters
Name | Type | Description |
---|---|---|
event | MouseEvent <Element , MouseEvent > | React mouse event |
item? | IItemProps | Clicked the List item object |
Returns
void
Overrides
Omit.onClick
Defined in
onSelect
▸ Optional
onSelect(event
, item?
): void
Listen to the select event of List
Parameters
Name | Type | Description |
---|---|---|
event | MouseEvent <Element , MouseEvent > | React mouse event |
item? | IItemProps | Selected the List item object |
Returns
void