Skip to content

Interface: MenuItemTrailing ​

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

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:34

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


title? ​

ts
optional title?: string;

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

Native tooltip for the control.


onClick ​

ts
onClick: () => void;

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

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

Returns ​

void