Skip to content

Interface

The extension interface for ContextTool extension point.

Inheritance: ContextToolExtensionBaseExtension

Properties

Hide inherited properties
PropertyTypeNotes
checked(propsLayoutContextToolProps) => boolean

Check whether this tool is checked.

disabled(propsLayoutContextToolProps) => boolean

Check whether this tool is disabled.

getGroupId() => string

Return group id.

getIcon() => ComponentClass<SVGAttributes<SVGElement>>

Return the icon.

getSettingPanel(propsLayoutContextToolProps) => FunctionComponent<any> | ComponentClass<anyany>

The setting panel of the tool. Returning null means there is no setting panel for the tool. If the returned value is not null, the setting panel will be rendered.

getTitle(propsLayoutContextToolProps) => string

Return the title.

id
inherited
string

The unique ID. For widget's provided extension, the id pattern is: widgetId + extensionName

index
inherited
number

If an extension point supports multiple extensions, the index is used to determine the extension order.

label
inherited
string

The extension label.

name
inherited
string

The extension name.

onClick(propsLayoutContextToolProps, evt?MouseEvent<any>) => void

OnClick callback.

openWhenAddedboolean

Check whether this tool should be opened by default when the toolbar opened.

visible(propsLayoutContextToolProps) => boolean

Check whether this tool is visible.

widgetId
inherited
string

The widget ID that provides the extension. No widget id means the extension is provided by Jimu.

checked

optional
Interface Property

disabled

optional
Interface Property

getGroupId

Interface Property

getIcon

Interface Property

getSettingPanel

Interface Property

getTitle

Interface Property

id

inheritedinherited
Interface Property

index

optionalinheritedinherited
Interface Property

label

optionalinheritedinherited
Interface Property

name

optionalinheritedinherited
Interface Property

onClick

optional
Interface Property

openWhenAdded

optional
Interface Property

visible

optional
Interface Property

widgetId

optionalinheritedinherited
Interface Property

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.