morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::author::TableOptions Struct Reference

Options of table and dataTable. More...

#include <author.hpp>

Public Attributes

AnyHandle key
 The row key, read in the row scope.
std::vector< TableColumn > columns
 The columns; a model-backed table derives them from the row type when none are given.
bool showHeader = true
 Whether the header row is drawn. Several tables sharing one visual header set this false on every instance but the first.
std::size_t virtualizeThreshold = 2000
 Below this many rows, every row's widget stays realized regardless of scroll position; a backend that cannot virtualize ignores this and virtualizeOverscan both.
std::size_t virtualizeOverscan = 10
 How many rows beyond the visible range, on each side, keep a realized widget.
std::optional< Selection > selection
 How the selection works.
std::optional< TableMode > mode
 Where a model-backed table works; ignored by a table over rows.
AnyHandle sort
 The sort.
AnyHandle filters
 The filters.
AnyHandle rowTone
 A row's tone, read in the row scope.
AnyHandle highlightKey
 The key a linked chart highlights.
Commands onActivate
 Commands run when a row is activated, in its row scope.
Nodes empty
 Shown instead of the table while its rows are an empty list, in the table's scope; empty shows the table always.

Detailed Description

Options of table and dataTable.

Definition at line 3709 of file author.hpp.

Member Data Documentation

◆ key

AnyHandle morph::ui::author::TableOptions::key

The row key, read in the row scope.

Definition at line 3711 of file author.hpp.

◆ columns

std::vector<TableColumn> morph::ui::author::TableOptions::columns

The columns; a model-backed table derives them from the row type when none are given.

Definition at line 3713 of file author.hpp.

◆ showHeader

bool morph::ui::author::TableOptions::showHeader = true

Whether the header row is drawn. Several tables sharing one visual header set this false on every instance but the first.

Definition at line 3716 of file author.hpp.

◆ virtualizeThreshold

std::size_t morph::ui::author::TableOptions::virtualizeThreshold = 2000

Below this many rows, every row's widget stays realized regardless of scroll position; a backend that cannot virtualize ignores this and virtualizeOverscan both.

Definition at line 3719 of file author.hpp.

◆ virtualizeOverscan

std::size_t morph::ui::author::TableOptions::virtualizeOverscan = 10

How many rows beyond the visible range, on each side, keep a realized widget.

Definition at line 3721 of file author.hpp.

◆ selection

std::optional<Selection> morph::ui::author::TableOptions::selection

How the selection works.

Definition at line 3723 of file author.hpp.

◆ mode

std::optional<TableMode> morph::ui::author::TableOptions::mode

Where a model-backed table works; ignored by a table over rows.

Definition at line 3725 of file author.hpp.

◆ sort

AnyHandle morph::ui::author::TableOptions::sort

The sort.

Definition at line 3727 of file author.hpp.

◆ filters

AnyHandle morph::ui::author::TableOptions::filters

The filters.

Definition at line 3729 of file author.hpp.

◆ rowTone

AnyHandle morph::ui::author::TableOptions::rowTone

A row's tone, read in the row scope.

Definition at line 3731 of file author.hpp.

◆ highlightKey

AnyHandle morph::ui::author::TableOptions::highlightKey

The key a linked chart highlights.

Definition at line 3733 of file author.hpp.

◆ onActivate

Commands morph::ui::author::TableOptions::onActivate

Commands run when a row is activated, in its row scope.

Definition at line 3735 of file author.hpp.

◆ empty

Nodes morph::ui::author::TableOptions::empty

Shown instead of the table while its rows are an empty list, in the table's scope; empty shows the table always.

Definition at line 3738 of file author.hpp.


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