component

Structs

ComponentInstance

A render node with its own runtime context. Will push a frame to the runtime stack including the specified projected_children and a PaxType properties object. Component is used at the root of applications, at the root of reusable components like Stacker, and in special applications like Repeat where it houses the RepeatItem properties attached to each of Repeat's virtual nodes.

Properties

template

Type: InstanceNodePtrList

timelines

Type: Vec<Rc<RefCell<Timeline>>>


ScrollPosition

Built-in $scroll_position value synthesized for components inside scrollers.

Properties

x

Type: f64

y

Type: f64

Implementations

create_builtin_if_exists
pub fn create_builtin_if_exists(property_scope: Ref<'_, HashMap<String, Variable>>) -> Option<HashMap<String, Variable>>

Create a stack frame containing $scroll_position when scroll properties are present.