mendraw/mendix/selection
Provides typed access to Mendix selection values.
Types
A typed SelectionMultiValue value used by the selection capability.
pub type SelectionMultiValue
A typed SelectionSingleValue value used by the selection capability.
pub type SelectionSingleValue
Values
pub fn selection(
sel sel: SelectionSingleValue,
) -> option.Option(mendix.ObjectItem)
Returns the selected item.
pub fn selections(
sel sel: SelectionMultiValue,
) -> List(mendix.ObjectItem)
Returns all selected items.
pub fn set_selection(
sel sel: SelectionSingleValue,
item item: option.Option(mendix.ObjectItem),
) -> Nil
Sets the selection.
pub fn set_selections(
sel sel: SelectionMultiValue,
items items: List(mendix.ObjectItem),
) -> Nil
Sets the selections.