Skip to content

Latest commit

 

History

History
193 lines (97 loc) · 3.96 KB

ToolButton.md

File metadata and controls

193 lines (97 loc) · 3.96 KB

@serenity-is/corelib / ToolButton

Interface: ToolButton

Extends

Properties

action?

optional action: string

Inherited from

ToolButtonProps.action

Defined in

src/ui/widgets/toolbar.tsx:6


cssClass?

optional cssClass: string

Inherited from

ToolButtonProps.cssClass

Defined in

src/ui/widgets/toolbar.tsx:9


disabled?

optional disabled: boolean | () => boolean

Inherited from

ToolButtonProps.disabled

Defined in

src/ui/widgets/toolbar.tsx:14


hint?

optional hint: string

Inherited from

ToolButtonProps.hint

Defined in

src/ui/widgets/toolbar.tsx:8


hotkey?

optional hotkey: string

Defined in

src/ui/widgets/toolbar.tsx:18


hotkeyAllowDefault?

optional hotkeyAllowDefault: boolean

Defined in

src/ui/widgets/toolbar.tsx:19


hotkeyContext?

optional hotkeyContext: any

Defined in

src/ui/widgets/toolbar.tsx:20


icon?

optional icon: IconClassName

Inherited from

ToolButtonProps.icon

Defined in

src/ui/widgets/toolbar.tsx:10


onClick()?

optional onClick: (e) => void

Parameters

e

MouseEvent & object

Returns

void

Inherited from

ToolButtonProps.onClick

Defined in

src/ui/widgets/toolbar.tsx:11


ref()?

optional ref: (el) => void

Parameters

el

HTMLElement

Returns

void

Inherited from

ToolButtonProps.ref

Defined in

src/ui/widgets/toolbar.tsx:12


separator?

optional separator: boolean | "left" | "right" | "both"

Defined in

src/ui/widgets/toolbar.tsx:21


title?

optional title: string | HTMLElement | DocumentFragment | SVGElement

Inherited from

ToolButtonProps.title

Defined in

src/ui/widgets/toolbar.tsx:7


visible?

optional visible: boolean | () => boolean

Inherited from

ToolButtonProps.visible

Defined in

src/ui/widgets/toolbar.tsx:13