MCPcopy Create free account
hub / github.com/boltex/leojs / createIconButton

Method createIconButton

src/core/mod_scripting.ts:662–729  ·  view source on GitHub ↗

* Create one icon button. * This method creates all scripting icon buttons. * * - Creates the actual button and its balloon. * - Adds the button to buttonsDict. * - Registers command with the shortcut. * - Creates x and delete-x-button commands, where x is the cleaned

(
        args: any,
        text: string,
        command: ((...args: any[]) => any) | undefined,
        statusLine: string,
        bg?: string,
        kind?: string,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

createCommonButtonMethod · 0.95

Calls 9

cleanButtonTextMethod · 0.95
truncateButtonTextMethod · 0.95
setButtonColorMethod · 0.95
createBalloonMethod · 0.95
registerAllCommandsMethod · 0.95
pushMethod · 0.80
registerCommandMethod · 0.80
addMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected