l_bind_glyph: Add a glyph binding

View source: R/l_bind.R

l_bind_glyphR Documentation

Add a glyph binding

Description

Creates a binding that evaluates a callback for particular changes in the collection of glyphs of a display.

Usage

l_bind_glyph(widget, event, callback)

Arguments

widget

widget path as a string or as an object handle

event

a vector with one or more of the following events: 'add', 'delete', 'relabel'

callback

callback function is an R function which is called by the Tcl interpreter if the event of interest happens. Note that in loon the callback functions support different optional arguments depending on the binding type, read the details for more information

Details

Bindings, callbacks, and binding substitutions are described in detail in loon's documentation webpage, i.e. run l_help("learn_R_bind")

Value

glyph binding id

See Also

l_bind_glyph_ids, l_bind_glyph_get, l_bind_glyph_delete, l_bind_glyph_reorder


loon documentation built on July 9, 2023, 5:48 p.m.