ContextToolExtension

Interface

The extension interface for ContextTool extension point.

Inheritance: ContextToolExtensionBaseExtension

Properties

Hide inherited properties
PropertyTypeNotes
(propsLayoutContextToolProps) => boolean
(propsLayoutContextToolProps) => boolean
() => string
() => ComponentClass<SVGAttributes<SVGElement>any>
(propsLayoutContextToolProps) => ComponentClass<unknownany>
(propsLayoutContextToolProps) => string
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.

name
inherited
string

The extension name.

(propsLayoutContextToolProps, evt?MouseEvent<anyMouseEvent>) => void
(propsLayoutContextToolProps) => boolean
widgetId
inherited
string

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

checked

optional
Interface Property
checked: (propsLayoutContextToolProps) => boolean
Type declaration
    function(propsLayoutContextToolProps): boolean

    Check whether this tool is checked.

    Parameters
    ParameterType
    props
    LayoutContextToolProps
    Returns 
    boolean

disabled

optional
Interface Property
disabled: (propsLayoutContextToolProps) => boolean
Type declaration
    function(propsLayoutContextToolProps): boolean

    Check whether this tool is disabled.

    Parameters
    ParameterType
    props
    LayoutContextToolProps
    Returns 
    boolean

getGroupId

Interface Property
getGroupId: () => string
Type declaration
    function(): string

    Return group id.

    Returns 
    string

getIcon

Interface Property
getIcon: () => ComponentClass<SVGAttributes<SVGElement>any>
Type declaration
    function(): ComponentClass<SVGAttributes<SVGElement>any>

    Return the icon.

    Returns 
    ComponentClass<SVGAttributes<SVGElement>any>

getSettingPanel

Interface Property
getSettingPanel: (propsLayoutContextToolProps) => ComponentClass<unknownany>
Type declaration
    function(propsLayoutContextToolProps): ComponentClass<unknownany>

    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.

    Parameters
    ParameterType
    props
    LayoutContextToolProps
    Returns 
    ComponentClass<unknownany>

getTitle

Interface Property
getTitle: (propsLayoutContextToolProps) => string
Type declaration
    function(propsLayoutContextToolProps): string

    Return the title.

    Parameters
    ParameterType
    props
    LayoutContextToolProps
    Returns 
    string

id

inherited
Interface Property
id: string

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

Inherited from BaseExtension.id

index

optionalinherited
Interface Property
index: number

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

Inherited from BaseExtension.index

name

optionalinherited
Interface Property
name: string

The extension name.

Inherited from BaseExtension.name

onClick

optional
Interface Property
onClick: (propsLayoutContextToolProps, evt?MouseEvent<anyMouseEvent>) => void
Type declaration
    function(propsLayoutContextToolProps, evt?MouseEvent<anyMouseEvent>): void

    OnClick callback.

    Parameters
    ParameterType
    props
    LayoutContextToolProps
    evt
    MouseEvent<anyMouseEvent>
    Returns 
    void

visible

optional
Interface Property
visible: (propsLayoutContextToolProps) => boolean
Type declaration
    function(propsLayoutContextToolProps): boolean

    Check whether this tool is visible.

    Parameters
    ParameterType
    props
    LayoutContextToolProps
    Returns 
    boolean

widgetId

optionalinherited
Interface Property
widgetId: string

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

Inherited from BaseExtension.widgetId

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