⌂
›
Reference
›
InteractiveViewer
InteractiveViewer
InteractiveViewer control. Build it with the interactive_viewer helper.
Example
interactive_viewer(
content: text("InteractiveViewer"),
expand: true,
width: 240,
height: 120,
on_animation_end: ->(event) {}
)
Properties
alignment— Alignment of the content within the control.boundary_marginclip_behavior— How content overflowing the bounds is clipped.constrainedcontent— The single child control rendered inside this control.interaction_end_friction_coefficientinteraction_update_intervalmax_scalemin_scalepan_enabledscale_enabledscale_factortrackpad_scroll_causes_scale
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_animation_end— Fired when an animation completes.on_interaction_end— Fired on interaction end.on_interaction_start— Fired on interaction start.on_interaction_update— Fired on interaction update.on_size_change— Fired when the control's size changes.
Reference
- Family:
shared - Widget type:
interactiveviewer - Helper:
interactive_viewer