Scopes
Public API
WebIO.Scope
— TypeScope(<keyword arguments>)
An object which can send and receive messages.
Arguments
dom
: The DOM node that will be rendered when the scope is displayed in the browser.imports
: An collection ofAsset
s to load (seeAsset
for more documentation) when the scope is mounted. If the entry is not anAsset
then it should be an argument to construct anAsset
.
Examples
myscope = Scope(
dom=node(:p, "I'm a little scope!"),
imports=[Asset("foo.js"), "bar.css", "spam" => "spam.js"],
)