Skip to main content

Interface: ActionBarItemRegistration

Defined in: types/frontend.ts:346

Registration for an action bar item.

Properties

icon

icon: PluginComponentType

Defined in: types/frontend.ts:354

Icon component for the action


id

id: string

Defined in: types/frontend.ts:348

Unique item identifier


label

label: string

Defined in: types/frontend.ts:351

Display label for the action


onClick()

onClick: (context) => void

Defined in: types/frontend.ts:363

Callback when the item is clicked

Parameters

ParameterType
contextTerminalActionContext

Returns

void


order?

optional order: number

Defined in: types/frontend.ts:366

Sort order among action bar items (lower = leftmost)


showFor

showFor: string | string[]

Defined in: types/frontend.ts:360

AI modes this item appears for. Use '*' to show for all modes, or specify specific mode strings.