Skip to main content
Version: 1.x

Interface: IListProps

molecule.component.IListProps

Hierarchy

  • Omit<ComponentProps<"ul">, "onSelect">

    IListProps

Properties

current

Optional current: string

Current active

Defined in

components/list/list.tsx:16


disable

Optional disable: UniqueId

It's used to disable specific item, the value of disable is id string

Defined in

components/list/list.tsx:20


mode

Optional mode: "horizontal" | "vertical"

Default is vertical mode

Defined in

components/list/list.tsx:12

Methods

onClick

Optional onClick(event, item?): void

Listen to the click event of List

Parameters

NameTypeDescription
eventMouseEvent<Element, MouseEvent>React mouse event
item?IItemPropsClicked the List item object

Returns

void

Overrides

Omit.onClick

Defined in

components/list/list.tsx:32


onSelect

Optional onSelect(event, item?): void

Listen to the select event of List

Parameters

NameTypeDescription
eventMouseEvent<Element, MouseEvent>React mouse event
item?IItemPropsSelected the List item object

Returns

void

Defined in

components/list/list.tsx:26