m3e/carousel_grid

CarouselGrid is arranges items in a responsive, vertically scrolling grid.

This file was generated by m3e/generator

     DO NOT EDIT

Types

CarouselGrid is a View Model for this component

Fields:

  • selected_index: The zero-based index of the current item.
pub opaque type CarouselGrid

Values

pub const default_selected_index: Float
pub fn new(selected_index: Float) -> CarouselGrid

new creates a new CarouselGrid with the default configuration.

pub fn render(
  model: CarouselGrid,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)

render creates a Lustre Element for a CarouselGrid

pub fn selected_index(
  arg: CarouselGrid,
  selected_index: Float,
) -> CarouselGrid

selected_index sets the value of selected_index for this CarouselGrid.

✨ Search Document