Nui
Public Attributes | List of all members
Nui::Components::SelectArgs< ContainerT, ValueT > Struct Template Reference

#include <select.hpp>

Collaboration diagram for Nui::Components::SelectArgs< ContainerT, ValueT >:
Collaboration graph
[legend]

Public Attributes

Observed< ContainerT< SelectOptions< ValueT > > > & model
 A list of all the options: More...
 
int preSelectedIndex = -1
 For pre selecting an element. More...
 
std::function< void(long long, SelectOptions< ValueT > const &)> onSelect = {}
 Called when an option is selected. More...
 
std::vector< AttributeselectAttributes = {}
 Attributes to be forwarded to the select element. More...
 

Member Data Documentation

◆ model

template<template< typename... > typename ContainerT, typename ValueT >
Observed<ContainerT<SelectOptions<ValueT> > >& Nui::Components::SelectArgs< ContainerT, ValueT >::model

A list of all the options:

◆ onSelect

template<template< typename... > typename ContainerT, typename ValueT >
std::function<void(long long, SelectOptions<ValueT> const&)> Nui::Components::SelectArgs< ContainerT, ValueT >::onSelect = {}

Called when an option is selected.

◆ preSelectedIndex

template<template< typename... > typename ContainerT, typename ValueT >
int Nui::Components::SelectArgs< ContainerT, ValueT >::preSelectedIndex = -1

For pre selecting an element.

◆ selectAttributes

template<template< typename... > typename ContainerT, typename ValueT >
std::vector<Attribute> Nui::Components::SelectArgs< ContainerT, ValueT >::selectAttributes = {}

Attributes to be forwarded to the select element.


The documentation for this struct was generated from the following file: