Nui
Public Attributes | List of all members
Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs > Struct Template Reference

#include <table.hpp>

Collaboration diagram for Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >:
Collaboration graph
[legend]

Public Attributes

Nui::Observed< ContainerT< ElementT, OtherArgs... > > & tableModel
 Contains the data to be displayed in the table. More...
 
std::variant< std::monostate, std::string, Nui::Observed< std::string > const * > caption = std::monostate{}
 The caption of the table. Can be static, observed or off. More...
 
std::function< Nui::ElementRenderer()> headerRenderer = {}
 The renderer for the header. Can be empty. More...
 
std::function< Nui::ElementRenderer(long long i, ElementT const &)> rowRenderer = {}
 The renderer for each row. More...
 
std::function< Nui::ElementRenderer()> footerRenderer = {}
 The renderer for the footer. Can be empty. More...
 
std::vector< AttributetableAttributes = {}
 Attributes to be forwarded to the table element. More...
 
std::vector< AttributecaptionAttributes = {}
 Attributes to be forwarded to the caption element. More...
 
std::vector< AttributeheaderAttributes = {}
 Attributes to be forwarded to the header element. More...
 
std::vector< AttributebodyAttributes = {}
 Attributes to be forwarded to the body element. More...
 
std::vector< AttributefooterAttributes = {}
 Attributes to be forwarded to the footer element. More...
 

Member Data Documentation

◆ bodyAttributes

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::vector<Attribute> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::bodyAttributes = {}

Attributes to be forwarded to the body element.

◆ caption

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::variant<std::monostate, std::string, Nui::Observed<std::string> const*> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::caption = std::monostate{}

The caption of the table. Can be static, observed or off.

◆ captionAttributes

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::vector<Attribute> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::captionAttributes = {}

Attributes to be forwarded to the caption element.

◆ footerAttributes

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::vector<Attribute> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::footerAttributes = {}

Attributes to be forwarded to the footer element.

◆ footerRenderer

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::function<Nui::ElementRenderer()> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::footerRenderer = {}

The renderer for the footer. Can be empty.

◆ headerAttributes

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::vector<Attribute> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::headerAttributes = {}

Attributes to be forwarded to the header element.

◆ headerRenderer

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::function<Nui::ElementRenderer()> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::headerRenderer = {}

The renderer for the header. Can be empty.

◆ rowRenderer

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::function<Nui::ElementRenderer(long long i, ElementT const&)> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::rowRenderer = {}

The renderer for each row.

◆ tableAttributes

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
std::vector<Attribute> Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::tableAttributes = {}

Attributes to be forwarded to the table element.

◆ tableModel

template<template< typename... > typename ContainerT, typename ElementT , typename... OtherArgs>
Nui::Observed<ContainerT<ElementT, OtherArgs...> >& Nui::Components::TableArguments< ContainerT, ElementT, OtherArgs >::tableModel

Contains the data to be displayed in the table.


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