Nui
Classes | Functions
Nui::Components Namespace Reference

Classes

class  DialogController
 Examplary dialog class for the most simple kinds of dialogs. More...
 
struct  SelectOptions
 
struct  SelectArgs
 
struct  TableArguments
 
class  Table
 A wrapper around the html table elements. More...
 
class  Table< ContainerT< ElementT, OtherArgs... > >
 

Functions

template<typename ValueT , template< typename... > typename ContainerT = std::vector>
constexpr auto Select (SelectArgs< ContainerT, ValueT > &&args)
 Creates a <select><option></option>...</select> element. More...
 
template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
 Table (TableArguments< ContainerT, ElementT, OtherArgs... > &&args) -> Table< ContainerT< ElementT, OtherArgs... >>
 
template<typename T , typename... Attributes>
constexpr auto TextInput (Observed< T > &model, Attributes &&... attributes)
 This component can be used like this TextInput(attributes...)(children...) instead of the C{}() syntax. More...
 
Nui::ElementRenderer Dialog (DialogController &controller)
 

Function Documentation

◆ Dialog()

Nui::ElementRenderer Nui::Components::Dialog ( DialogController controller)
Parameters
controllerAn instance of DialogController.

◆ Select()

template<typename ValueT , template< typename... > typename ContainerT = std::vector>
constexpr auto Nui::Components::Select ( SelectArgs< ContainerT, ValueT > &&  args)
constexpr

Creates a <select><option></option>...</select> element.

◆ Table()

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
Nui::Components::Table ( TableArguments< ContainerT, ElementT, OtherArgs... > &&  args) -> Table< ContainerT< ElementT, OtherArgs... >>

◆ TextInput()

template<typename T , typename... Attributes>
constexpr auto Nui::Components::TextInput ( Observed< T > &  model,
Attributes &&...  attributes 
)
constexpr

This component can be used like this TextInput(attributes...)(children...) instead of the C{}() syntax.

Parameters
modelThe value model (Observed<T>).
attributesOther attributes to forward.