TCustomCreateAction
A custom item of the create ("+") menu. Clicking it fires TFrameEvents.onCustomAction
with type: "create" and the id of the folder the user is in. In SDKMode.Manager the create
menu is the New button of the filter toolbar on desktop, shown with TFrameConfig.showFilter,
and the floating create button on mobile devices; the rooms list has no create menu, its button creates a room.
type TCustomCreateAction = object;
Example
const action: TCustomCreateAction = {
key: "upload-from-crm",
label: "Upload from CRM",
section: ["my-documents"],
};
Properties
| Property | Type | Description |
|---|---|---|
icon | string | URL of the action icon, or a data: URI. The portal fetches an .svg URL and inlines it, so the icon host must answer cross-origin requests with Access-Control-Allow-Origin (as for TFrameConfig.stylesUrl) and the portal's content security policy must allow the connection; any other image URL is loaded as an image and needs the policy to allow images from its origin. |
key | string | Unique action identifier. Returned as action in TCustomActionEvent. |
label | string | Display label in the create menu. |
section | TCustomActionSection[] | Sections where the action is shown. If omitted, it is shown in every section that has a create menu. |