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

Method createCommonButton

src/core/mod_scripting.ts:850–911  ·  view source on GitHub ↗

* Create a button in the icon area for a common @button node in an @setting * tree. Binds button presses to a callback that executes the script. * * Important: Common @button and @command scripts now *do* update * dynamically provided that myLeoSettings.leo is open. Otherwise th

(p: Position, script: string, rclicks: any[] = [])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

createCommonButtonsMethod · 0.95

Calls 9

getArgsMethod · 0.95
getShortcutMethod · 0.95
getColorMethod · 0.95
createIconButtonMethod · 0.95
cleanButtonTextMethod · 0.95
handleRclicksMethod · 0.95
registerAllCommandsMethod · 0.95
setCommandForButtonMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected