tui_realm_stdlib/components/
props.rs

1//! # Props
2//!
3//! This module exposes components props name
4
5// -- bar-chart
6
7pub const BAR_CHART_BARS_GAP: &str = "bar-chart-bars-gap";
8pub const BAR_CHART_BARS_STYLE: &str = "bar-chart-bars-style";
9pub const BAR_CHART_LABEL_STYLE: &str = "bar-chart-label-style";
10pub const BAR_CHART_MAX_BARS: &str = "bar-chart-max-bars";
11pub const BAR_CHART_VALUES_STYLE: &str = "bar-chart-values-style";
12
13// -- canvas
14
15pub const CANVAS_X_BOUNDS: &str = "x-bounds";
16pub const CANVAS_Y_BOUNDS: &str = "y-bounds";
17pub const CANVAS_MARKER: &str = "marker";
18pub const CANVAS_MARKER_BRAILLE: isize = 0;
19pub const CANVAS_MARKER_DOT: isize = 1;
20pub const CANVAS_MARKER_BLOCK: isize = 2;
21pub const CANVAS_MARKER_BAR: isize = 3;
22pub const CANVAS_MARKER_HALF_BLOCK: isize = 4;
23
24// -- chart
25
26pub const CHART_X_BOUNDS: &str = "x-bounds";
27pub const CHART_Y_BOUNDS: &str = "y-bounds";
28pub const CHART_X_LABELS: &str = "x-labels";
29pub const CHART_Y_LABELS: &str = "y-labels";
30pub const CHART_X_STYLE: &str = "x-style";
31pub const CHART_Y_STYLE: &str = "y-style";
32pub const CHART_X_TITLE: &str = "x-title";
33pub const CHART_Y_TITLE: &str = "y-titles";
34
35// -- input
36
37pub const INPUT_INVALID_STYLE: &str = "invalid-style";
38pub const INPUT_PLACEHOLDER: &str = "placeholder";
39pub const INPUT_PLACEHOLDER_STYLE: &str = "placeholder-style";
40
41// -- line gauge
42
43pub const LINE_GAUGE_STYLE_NORMAL: u8 = 0;
44pub const LINE_GAUGE_STYLE_DOUBLE: u8 = 1;
45pub const LINE_GAUGE_STYLE_ROUND: u8 = 2;
46pub const LINE_GAUGE_STYLE_THICK: u8 = 3;
47
48// -- table
49
50pub const TABLE_COLUMN_SPACING: &str = "col-spacing";