This feature is experimental. Please share your experiences so we know what to keep or change.
Creates an element with the given selector
and appends it to the current layer's
outmost element.
This is a shortcut for up.layer.current.affix(selector)
.
See up.Layer#affix
for more documentation.
The CSS selector from which to create an element.
An object of CSS properties that will be set as the inline style of the created element. The given object must use kebab-case keys.
You may also pass a string with semicolon-separated styles.
The created element.