Teek::UI::EventBinding Class
An event a node wants wired up. target is nil to bind on the
node’s own widget, or a Symbol naming another node’s widget - resolved
by the realizer’s link pass, after every node in the whole tree has
already been created, so a target declared later in the build still
resolves correctly (the forward-reference case). subs are
Teek::App#bind substitution codes (e.g. %i[x y]) forwarded to the
handler when it fires.
Inherits: Data
Instance Methods ↑
initialize(event:, handler:, target: nil, subs: [])
Parameters
eventString— a Tk bind event pattern, e.g."<Button-1>"handler#call— called with whateversubssubstitutestargetSymbol, nil— another node's name, or nil for selfsubsArray<Symbol, String>— seeTeek::App#bind
Returns EventBinding — a new instance of EventBinding