Skip to main content

page

Function page 

Source
pub fn page<M>(order: i64, content: Node<M>) -> Node<M>
Expand description

One page of a sequence the plugin moves through: a list and one of its rows’ details, a month of a calendar. order says which page it is. When it changes, the host hands over: the old page slides away and fades, then the new one comes in from the side it’s on, from the right for a higher order (further in, later), from the left for a lower one (back, earlier). While order stays, the content just changes, as anywhere else. The plugin keeps which page it’s on; the host only draws the way between them.