UNPKG

@wix/design-system

Version:

@wix/design-system

38 lines (35 loc) 2.31 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute to be used in the tests. ### onClick - type: () => void - description: Called when clicking on the table action cell. ### primaryAction - type: ButtonHTMLAttributes<HTMLButtonElement> & { visibility?: TableActionCellPrimaryActionVisibility | undefined; } & { ...; } & BaseActionProps | AnchorHTMLAttributes<HTMLAnchorElement> & { visibility?: TableActionCellPrimaryActionVisibility | undefined; } & { ...; } & BaseActionProps | { visibility?: TableActionCellPrimaryActionVisibility | undefined; } & { [additionalProps: string]: any; as: "object" | "small" | "title" | ... 106 more ... | "wbr"; onClick?: MouseEventHandler<...> | undefined; } & BaseActionProps | { visibility?: TableActionCellPrimaryActionVisibility | undefined; } & { [additionalProps: string]: any; as: ComponentType<any>; onClick?: MouseEventHandler<...> | undefined; } & BaseActionProps | TableActionCellMainAction[] - description: Controls the behaviour and appearance of a primary action. Can be a single action object or an array of action objects. ### secondaryActions - type: (TableActionCellSecondaryAction | TableActionCellSecondaryDivider)[] - description: Controls the behaviour and appearance of secondary actions. ### numOfVisibleSecondaryActions - type: number - description: Specifies the number of secondary actions to display outside of the popover menu. ### alwaysShowSecondaryActions - type: boolean - description: Specifies whether secondary actions should be visible all the time. By default secondary actions are visible on row hover only. ### alwaysShowPrimaryActions - type: boolean - description: Specifies whether primary actions should be visible all the time. By default primary actions are visible on row hover only. ### moreActionsTooltipText - type: string - description: Sets the tooltip text of more actions icon button. ### moreActionsProps - type: TableActionCellMoreActionsProps - description: Controls the appearance of the more actions icon button. ### popoverMenuProps - type: TableActionCellPopoverMenuProps - description: Controls the appearance of secondary actions menu with all common popover menu props. ### size - type: "tiny" | "small" | "medium" - description: Controls the size of action buttons. - default: medium