WLJS LogoWLJS Notebook

OffloadFromEventObject

Wolfram Kernel
Offload`FromEventObject[ev_EventObject] _Offload

generates a dynamic symbol (aka Offload) from a given EventObject (InputRange, InputText, ... etc) placing view-component of ev as a decoration

To produce more instances, you need to call it multiple times

Example

It feels similar to what Mathematica's dynamic keyword produce

evaluate
Offload`FromEventObject[InputRange[-1,1,0.1]]

cut and paste it into

Rectangle[{-1,-1}, {(*here*), 1}]

Dev notes

This is a simple combination of Offload, EventHandler and Interpretation

On this page