Reference

PageView

PageView

PageView control. Build it with the page_view helper.

Example

page_view(
  expand: true,
  width: 240,
  height: 120,
  on_change: ->(event) {}
)

Properties

  • clip_behavior — How content overflowing the bounds is clipped.
  • controls — The list of child controls.
  • horizontal
  • implicit_scrolling
  • keep_page
  • pad_ends
  • reverse
  • selected_index
  • snap
  • viewport_fraction

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_change — Fired when the value changes.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: shared
  • Widget type: pageview
  • Helper: page_view