Interface Entry

interface Entry {
    displayName: string;
    enabled?: ((context) => boolean);
    handler: ((context, content) => void);
    iconClass?: string;
    iconSvgInline?: string;
    id: string;
    order?: number;
}

Properties

displayName: string

Translatable string displayed in the menu

enabled?: ((context) => boolean)

Condition wether this entry is shown or not

Type declaration

    • (context): boolean
    • Parameters

      • context: Folder

        the creation context. Usually the current folder

      Returns boolean

handler: ((context, content) => void)

Function to be run after creation

Type declaration

    • (context, content): void
    • Parameters

      • context: Folder

        the creation context. Usually the current folder

      • content: Node[]

        list of file/folders present in the context folder

      Returns void

iconClass?: string

Existing icon css class

Deprecated

use iconSvgInline instead

iconSvgInline?: string

Either iconSvgInline or iconClass must be defined Svg as inline string.

id: string

Unique ID

order?: number

Order of the entry in the menu