huxerui.datatable
importVirtualized data table component with sorting, selection, and inline editing for HuxerUI
import huxerui.datatable;
Module name read from the upstream `export module` declaration in modules/datatable.cppm.
mcpp add huxerui.datatable@0.1.0
Usage
From this repository's own test project — built and run by CI, not written for the website.
import std;
import huxerui.datatable;
using namespace huxerui;
int main() {
bool ok = true;
// 1. Construct DataTable model/value types exported by huxerui.datatable
const DataTableCellId c1{"row-1", "col-id"};
const DataTableCellId c2{"row-1", "col-id"};
const DataTableCellId c3{"row-2", "col-id"};
ok = ok && (c1 == c2) && !(c1 == c3);
const DataTableSort s1{"col-id", DataTableSortDirection::Ascending};
const DataTableSort s2{"col-id", DataTableSortDirection::Descending};
ok = ok && (s1 == s1) && !(s1 == s2);
// 2. Call out-of-line DataTable() validation (must throw std::invalid_argument on invalid options)
bool threw_bad_height = false;
try {
DataTableOptions bad{};
// …
tests/examples/huxerui-datatable/tests/datatable.cpp · project tests/examples/huxerui-datatable
Build · upstream manifest
- modules
huxerui.datatable- targets
huxerui_datatable (lib), datatable (lib)- language
c++23- manifest version
0.1.0- dependencies
huxerui- source
https://raw.githubusercontent.com/HuxerUI/Lib-DataTable/v0.1.0/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
0.1.0 latest |
LinuxWindowsmacOS | source | 592214822fd8… |