Skip to content

Interface: MenuItemTrailing

Defined in: packages/sdk/src/ui-service.ts:31

A secondary control rendered at the trailing edge of a MenuItem — e.g. a delete button on a row whose primary click does something else (reopen). Its click is isolated: it runs onClick and does not trigger the row's MenuItem.run.

Properties

icon

ts
icon: ReactNode;

Defined in: packages/sdk/src/ui-service.ts:33

The control's glyph (e.g. a Phosphor icon element).


title?

ts
optional title?: string;

Defined in: packages/sdk/src/ui-service.ts:35

Native tooltip for the control.


onClick

ts
onClick: () => void;

Defined in: packages/sdk/src/ui-service.ts:37

Invoked when the control is clicked; the menu closes first.

Returns

void