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

Everything about a table beyond its columns and rows. More...

#include <view.hpp>

Public Attributes

bool showHeader = true
 Whether the header row is drawn.
Virtualization virtualize {}
 The row count and margin above which a row's widget is realized only near the visible range.
SelectionMode selectionMode = SelectionMode::None
 How many rows the user can select.
Prop< std::vector< Key > > selection
 The selected rows' keys.
std::function< void(std::vector< Key >)> onSelectionChange
 Called with the keys the user selected.
std::function< void(Key)> onActivate
 Called with a row's key when the user activates it.
Common common {}
 Visibility, enablement, layout, drag-and-drop of the table.

Detailed Description

Everything about a table beyond its columns and rows.

Definition at line 1424 of file view.hpp.

Member Data Documentation

◆ showHeader

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

Whether the header row is drawn.

Definition at line 1426 of file view.hpp.

◆ virtualize

Virtualization morph::ui::TableOptions::virtualize {}

The row count and margin above which a row's widget is realized only near the visible range.

Definition at line 1428 of file view.hpp.

◆ selectionMode

SelectionMode morph::ui::TableOptions::selectionMode = SelectionMode::None

How many rows the user can select.

Definition at line 1430 of file view.hpp.

◆ selection

Prop<std::vector<Key> > morph::ui::TableOptions::selection

The selected rows' keys.

Definition at line 1432 of file view.hpp.

◆ onSelectionChange

std::function<void(std::vector<Key>)> morph::ui::TableOptions::onSelectionChange

Called with the keys the user selected.

Definition at line 1434 of file view.hpp.

◆ onActivate

std::function<void(Key)> morph::ui::TableOptions::onActivate

Called with a row's key when the user activates it.

Definition at line 1436 of file view.hpp.

◆ common

Common morph::ui::TableOptions::common {}

Visibility, enablement, layout, drag-and-drop of the table.

Definition at line 1438 of file view.hpp.


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