Widget and parameter reference
This reference covers all 43 component declarations in the six packaged component grammars in this checkout. It is regenerated from their effective metadata. Widgets are grouped by purpose; inherited and shared parameters are documented once and linked from each applicable widget. It describes the development checkout; consult the installed package before relying on a feature in a released application. It does not assign a maturity level or imply that every component is production-ready.
How to read this reference
T: text;B: Boolean;L: integer;R: real number; other codes are TYTX types.read: a reactive parameter;
^pathupdates the presentation from Data.twoWay: the component also writes accepted edits/state back through the binding.
—: no binding/default declared in component metadata. This is not a claim that the surrounding Source binding system has no behavior for the attribute.
None is a declared nullable/default value, not the text
"None".Allowed lists only enumerations explicitly present in metadata. Extra semantic validation is explained in the linked family guide and enforced by the runtime.
Ordinary Source attributes (such as id, class_, hidden, datapath, color,
padding, width, height, event declarations and bindings) are described in
Writing pages and Themes and CSS.
The tables below list component parameters, not an exhaustive HTML/CSS whitelist.
A parent’s region/panel attributes belong to that parent; they are shown separately.
Dynamic families such as lbl_*, box_*, validate_*, resolver_* and
condition_* have additional contracts in the narrative guides.
Select the right collection
from gramlot import Page as GramlotPage
from gramlot.collections.inputs import mygramlot as inputs
from gramlot.collections.layout import mygramlot as layout
class Page(GramlotPage):
gramlots = [inputs, layout]
def main(self, root):
root.dataSetter("customer.name", "Ada")
root.textbox(value="^customer.name", lbl="Customer", live=True)
Buttons, menu, menuline and spacer belong to the built-in buttons grammar.
The other families have prepared descriptors at gramlot.collections.<name>.
The base HTML/SVG grammar remains available. dialog is the window component;
html_dialog explicitly requests the browser’s HTML tag.
Collection loading, generation and overrides explains the complete package lifecycle. Examples and visual tour connects these controls to runnable lessons and screenshots.
Collection |
Components |
|---|---|
|
textbox, checkbox, radioButtonText, textBoxArea, passwordbox, radioButton, colorpicker, horizontalSlider, verticalSlider, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox, checkBoxText, dateCalendar |
|
button, toggleButton, dropDownButton, menu, menuline, spacer |
|
transformPane, dialog, floatingPane, framePane, trayPane, formlet, groupBox, contentPane, borderContainer, stackContainer, tabContainer |
|
|
|
codeMirror, htmlEditor, htmlPreview, markdownEditor, markdownPreview |
|
Values and bindings
The value type and writeback behavior depend on the control. Use a Data pointer for binding; see Data binding.
Applies to: textbox, checkbox, radioButtonText, textBoxArea, passwordbox, radioButton, colorpicker, horizontalSlider, verticalSlider, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox, checkBoxText, dateCalendar, toggleButton, codeMirror, htmlEditor, htmlPreview, markdownEditor, markdownPreview, typstPreview.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T or None |
— |
twoWay |
— |
textbox, radioButtonText, textBoxArea, passwordbox, filteringSelect, callbackSelect, comboBox, dbComboBox, checkBoxText |
|
B |
— |
twoWay |
— |
|
|
B |
False |
twoWay |
— |
|
|
T |
‘#000000’ |
twoWay |
— |
|
|
R |
0 |
twoWay |
— |
|
|
L / R / N or None |
— |
twoWay |
— |
|
|
D or None |
— |
twoWay |
— |
|
|
H or None |
— |
twoWay |
— |
|
|
T / L or None |
— |
twoWay |
— |
|
|
T |
‘’ |
twoWay |
— |
|
|
T |
‘’ |
read |
— |
Disabled, readonly and live updates
Disabled prevents interaction; readonly preserves reading without accepting edits. live controls when edits reach Data. See Field behavior.
Applies to: textbox, checkbox, radioButtonText, textBoxArea, passwordbox, radioButton, colorpicker, horizontalSlider, verticalSlider, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox, checkBoxText, dateCalendar, button, toggleButton, dropDownButton, menuline, codeMirror, htmlEditor, markdownEditor.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
B |
False |
read |
— |
All listed above |
|
B |
False |
read |
— |
textbox, checkbox, radioButtonText, textBoxArea, passwordbox, radioButton, colorpicker, horizontalSlider, verticalSlider, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox, checkBoxText, dateCalendar, toggleButton, codeMirror, htmlEditor, markdownEditor |
|
B |
False |
read |
— |
textbox, checkbox, textBoxArea, passwordbox, radioButton, colorpicker, horizontalSlider, verticalSlider, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox |
|
B |
True |
read |
— |
Labels and field presentation
lbl supplies a field label; lbl_position places it. The lbl_* and box_* style families are described in Themes and CSS.
Applies to: textbox, checkbox, radioButtonText, textBoxArea, passwordbox, radioButton, colorpicker, horizontalSlider, verticalSlider, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox, checkBoxText, dateCalendar, groupBox, codeMirror, htmlEditor, markdownEditor.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T or None |
— |
read |
— |
All listed above |
|
T |
‘TL’ |
read |
‘TL’, ‘TC’, ‘TR’, ‘L’, ‘R’, ‘BL’, ‘BC’, ‘BR’ |
All listed above |
Placeholders
Placeholder text is a hint, not a value or a replacement for a field label.
Applies to: textbox, textBoxArea, passwordbox, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T |
‘’ |
— |
— |
All listed above |
Validation
The validate_* family belongs to the shared validation contract, not to each widget. See Validation rules, callbacks and messages. Rule conditions and messages use the documented _if, _iswarning, _error and _warning suffixes. For example: root.textbox(value=”^customer.email”, lbl=”Email”, validate_email=True).
Applies to: textbox, checkbox, radioButtonText, textBoxArea, passwordbox, radioButton, colorpicker, horizontalSlider, verticalSlider, numberTextBox, dateTextBox, timeTextBox, filteringSelect, callbackSelect, comboBox, dbSelect, dbComboBox, checkBoxText, dateCalendar, codeMirror, htmlEditor, markdownEditor.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
B or None |
— |
read |
— |
All listed above |
|
B or None |
False |
read |
— |
All listed above |
|
T / L / N / R / B / D / H / DH / DHZ or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
‘upper’, ‘lower’, ‘title’, ‘capitalize’, ‘u’, ‘l’, ‘t’, ‘c’ |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / L / N / R / B / D / H / DH / DHZ or None |
— |
read |
— |
All listed above |
|
T / L / N / R / B / D / H / DH / DHZ or None |
— |
read |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
— |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
— |
— |
All listed above |
|
T or None |
— |
— |
— |
All listed above |
|
T or None |
— |
— |
— |
All listed above |
|
L or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T / B or None |
— |
— |
— |
All listed above |
|
B or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
Icons and label presentation
icon holds text or an emoji; iconSrc loads an image such as SVG. iconSize sizes the icon; labelPosition controls label presentation on menus and toolbars. See Menus and toolbars.
Applies to: button, toggleButton, dropDownButton, menu, menuline.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T |
‘’ |
read |
— |
|
|
T |
‘’ |
read |
— |
|
|
T |
‘beside’ |
read |
‘beside’, ‘below’, ‘tooltip’ |
|
|
R |
24 |
read |
— |
|
|
T or None |
— |
read |
‘beside’, ‘below’, ‘tooltip’ |
|
|
R or None |
— |
read |
— |
Locale and formatting
Data retains its typed value; locale and format affect presentation and parsing. workdate supplies date-editing context. See Typed controls.
Applies to: numberTextBox, dateTextBox, timeTextBox, dateCalendar.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
|
|
T or None |
— |
read |
— |
Window behavior and geometry
Dialog and floatingPane share controls, geometry and state. Their movement, resize and collapse defaults differ as shown below. Dialog remains modal, including when collapsed or maximized. See Windows.
Applies to: dialog, floatingPane.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T |
‘’ |
read |
— |
All listed above |
|
B |
False |
twoWay |
— |
All listed above |
|
B |
False |
twoWay |
— |
All listed above |
|
B |
True |
read |
— |
All listed above |
|
B |
False |
read |
— |
|
|
B |
False |
read |
— |
|
|
B |
False |
read |
— |
|
|
B |
False |
read |
— |
All listed above |
|
B |
False |
twoWay |
— |
All listed above |
|
T or None |
— |
— |
— |
All listed above |
|
T or None |
— |
twoWay |
— |
All listed above |
|
T or None |
— |
twoWay |
— |
All listed above |
|
T or None |
— |
twoWay |
— |
All listed above |
|
T or None |
— |
twoWay |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
T or None |
— |
read |
— |
All listed above |
|
B |
True |
read |
— |
|
|
B |
True |
read |
— |
|
|
B |
True |
read |
— |
Border and frame regions
BorderContainer and framePane share region arrangement and persistence. Child region parameters stay with each parent below. See Containers.
Applies to: framePane, borderContainer.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T |
‘headline’ |
read |
‘headline’, ‘sidebar’ |
All listed above |
|
B |
False |
read |
— |
All listed above |
Panel selection
StackContainer and tabContainer select one child panel; selectedPage uses its page name and selected its index. See Containers.
Applies to: stackContainer, tabContainer.
Parameter |
Type |
Default |
Binding |
Allowed |
Applies to |
|---|---|---|---|---|---|
|
T or None |
None |
twoWay |
— |
All listed above |
|
L or None |
None |
twoWay |
— |
All listed above |
Text fields
textbox
Single-line text with label, validation and optional live updates.
Collection: inputs. Browser element: gramlot-textbox.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
passwordbox
Masked text entry; masking does not encrypt or persist the value.
Collection: inputs. Browser element: gramlot-passwordbox.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
textBoxArea
Multiline plain text with the same field and validation contract.
Collection: inputs. Browser element: gramlot-text-box-area.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
L |
4 |
read |
— |
|
L |
24 |
read |
— |
Choices and selectors
checkbox
Boolean value, displayed as a checkbox or a switch.
Collection: inputs. Browser element: gramlot-checkbox.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
‘checkbox’ |
read |
‘checkbox’, ‘switch’ |
|
T or None |
None |
read |
— |
|
T |
‘’ |
— |
— |
checkBoxText
A local multi-choice group storing the selected codes.
Collection: inputs. Browser element: gramlot-check-box-text.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
— |
read |
— |
|
L |
1 |
read |
— |
colorpicker
Browser color input, with a bound color value.
Collection: inputs. Browser element: gramlot-colorpicker.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
filteringSelect
Search a closed set of local choices; Data stores the selected code.
Collection: inputs. Browser element: gramlot-filtering-select.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
‘’ |
read |
— |
|
T |
‘,’ |
read |
— |
callbackSelect
Choices supplied by a page callback.
Collection: inputs. Browser element: gramlot-callback-select.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
— |
— |
— |
comboBox
Suggestions with free text allowed.
Collection: inputs. Browser element: gramlot-combo-box.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
‘’ |
read |
— |
|
T |
‘,’ |
read |
— |
|
X or None |
None |
read |
— |
dbSelect
Endpoint-backed choices. Requires an application endpoint implementing the choice response contract; it supplies no database adapter.
Collection: inputs. Browser element: gramlot-db-select.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
— |
read |
— |
|
T |
‘dbSelect’ |
read |
— |
|
T |
— |
read |
— |
|
T |
— |
read |
— |
|
T |
— |
read |
— |
|
L |
10 |
read |
— |
|
L |
300 |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
T |
‘’ |
read |
— |
|
T |
— |
— |
— |
|
T |
— |
— |
— |
|
T |
— |
— |
— |
|
B |
False |
read |
— |
dbComboBox
Endpoint-backed suggestions with free text; the application owns the endpoint and persistence.
Collection: inputs. Browser element: gramlot-db-combo-box.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
— |
read |
— |
|
T |
‘dbSelect’ |
read |
— |
|
T |
— |
read |
— |
|
T |
— |
read |
— |
|
T |
— |
read |
— |
|
L |
10 |
read |
— |
|
L |
300 |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
T |
‘’ |
read |
— |
|
T |
— |
— |
— |
|
T |
— |
— |
— |
|
T |
— |
— |
— |
Numbers, dates and time
numberTextBox
Locale-aware numeric editing; Data keeps the declared numeric type.
Collection: inputs. Browser element: gramlot-number-text-box.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation, Locale and formatting.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
‘R’ |
— |
— |
|
R or None |
— |
read |
— |
|
R or None |
— |
read |
— |
horizontalSlider
A bounded numeric range displayed horizontally.
Collection: inputs. Browser element: gramlot-horizontal-slider.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
R |
0 |
read |
— |
|
R |
100 |
read |
— |
|
R |
1 |
read |
— |
verticalSlider
A bounded numeric range displayed vertically.
Collection: inputs. Browser element: gramlot-vertical-slider.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
R |
0 |
read |
— |
|
R |
100 |
read |
— |
|
R |
1 |
read |
— |
dateTextBox
Civil date editing with an optional calendar popup.
Collection: inputs. Browser element: gramlot-date-text-box.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation, Locale and formatting.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
B |
True |
read |
— |
dateCalendar
An inline civil-date calendar.
Collection: inputs. Browser element: gramlot-date-calendar.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation, Locale and formatting.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
timeTextBox
Civil time editing with locale-aware text parsing.
Collection: inputs. Browser element: gramlot-time-text-box.
Field behavior, typed values, choices and validation.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Placeholders, Validation, Locale and formatting.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
Forms and containers
formlet
Responsive field layout with shared label alignment.
Collection: layout. Browser element: gramlot-formlet.
Forms, borders, panels and tabs.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
L / T |
1 |
read |
— |
|
T or None |
— |
read |
— |
Child grammar: *. This is a grammar expression, not a list of browser tags.
groupBox
A labelled content group, optionally collapsible, with an optional Data copy command.
Collection: layout. Browser element: gramlot-group-box.
Forms, borders, panels and tabs.
Shared contracts: Labels and field presentation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
B |
False |
read |
— |
|
T |
‘bar’ |
read |
‘bar’, ‘underline’, ‘card’ |
Child grammar: *. This is a grammar expression, not a list of browser tags.
contentPane
A content area or a child region/panel of a layout container.
Collection: layout. Browser element: gramlot-content-pane.
Forms, borders, panels and tabs.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
Child grammar: *. This is a grammar expression, not a list of browser tags.
borderContainer
Five regions with optional splitters, drawers and nested layouts.
Collection: layout. Browser element: gramlot-border-container.
Forms, borders, panels and tabs.
Shared contracts: Border and frame regions.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
Child grammar: *. This is a grammar expression, not a list of browser tags.
Parameters projected by this parent from its children:
Child parameter |
Contract |
|---|---|
|
{“enum”: [“top”, “bottom”, “left”, “right”, “center”], “required”: true, “unique”: true} |
|
Declared by parent |
|
Declared by parent |
|
{“inline”: [“evt”, “show”]} |
framePane
A border composition exposing top, bottom, left, right and center region builders.
Collection: layout. Browser element: gramlot-frame-pane.
Shared contracts: Border and frame regions.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
Child grammar: contentPane. This is a grammar expression, not a list of browser tags.
Parameters projected by this parent from its children:
Child parameter |
Contract |
|---|---|
|
{“enum”: [“top”, “bottom”, “left”, “right”, “center”], “required”: true, “unique”: true} |
|
Declared by parent |
|
Declared by parent |
|
{“inline”: [“evt”, “show”]} |
stackContainer
One selected panel at a time, without a tab strip.
Collection: layout. Browser element: gramlot-stack-container.
Forms, borders, panels and tabs.
Shared contracts: Panel selection.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
Child grammar: *. This is a grammar expression, not a list of browser tags.
Parameters projected by this parent from its children:
Child parameter |
Contract |
|---|---|
|
{“inline”: []} |
tabContainer
Selected panels with shaped or underlined tabs on any side.
Collection: layout. Browser element: gramlot-tab-container.
Forms, borders, panels and tabs.
Shared contracts: Panel selection.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
‘tabs’ |
read |
‘tabs’, ‘underline’ |
|
T |
‘top’ |
read |
‘top’, ‘bottom’, ‘left’, ‘right’ |
|
T |
‘start’ |
read |
‘start’, ‘center’, ‘end’ |
Child grammar: *. This is a grammar expression, not a list of browser tags.
Parameters projected by this parent from its children:
Child parameter |
Contract |
|---|---|
|
{“inline”: []} |
|
{“dtype”: “B”} |
trayPane
Data-owned arrangement of labelled live cards with selection, movement, resize, layers, rotation, zoom and snapping.
Collection: layout. Browser element: gramlot-tray-pane.
Tray workspaces and shared Labelboxes.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
— |
— |
— |
|
B |
False |
read |
— |
|
L |
10 |
read |
— |
|
B |
False |
read |
— |
|
N |
15 |
read |
— |
Child grammar: *. This is a grammar expression, not a list of browser tags.
Parameters projected by this parent from its children:
Child parameter |
Contract |
|---|---|
|
{“default”: 100, “dtype”: “N”} |
|
{“default”: 64, “dtype”: “N”} |
transformPane
Applies bound translation, rotation and scale to its retained content.
Collection: layout. Browser element: gramlot-transform-pane.
Forms, borders, panels and tabs.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
R |
0 |
read |
— |
|
R |
0 |
read |
— |
|
R |
0 |
read |
— |
|
R |
1 |
read |
— |
|
R |
0.5 |
read |
— |
|
R |
3 |
read |
— |
|
R |
0.01 |
read |
— |
|
T or None |
— |
— |
— |
Child grammar: *. This is a grammar expression, not a list of browser tags.
Dialogs and floating windows
dialog
A modal window containing a framePane; remains modal when collapsed or maximized.
Collection: layout. Browser element: gramlot-dialog.
Shared contracts: Window behavior and geometry.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
Child grammar: framePane. This is a grammar expression, not a list of browser tags.
floatingPane
A nonmodal window containing a framePane.
Collection: layout. Browser element: gramlot-floating-pane.
Shared contracts: Window behavior and geometry.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
Child grammar: framePane. This is a grammar expression, not a list of browser tags.
Trees
tree
Hierarchical Bag presentation with selection, disclosure and declared drag behavior.
Collection: tree. Browser element: gramlot-tree.
Tree stores, labels and selection.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
— |
— |
— |
|
B |
False |
read |
— |
|
T or None |
None |
read |
— |
|
B |
False |
read |
— |
|
T or None |
None |
— |
— |
|
T or None |
None |
— |
— |
|
T or None |
None |
— |
— |
|
T or None |
None |
— |
— |
|
T |
‘’ |
read |
— |
|
T |
‘’ |
read |
— |
|
B |
False |
read |
— |
|
T or None |
None |
twoWay |
— |
Editors and document previews
codeMirror
Code/text editor with composed language and editor options.
Collection: editors. Browser element: gramlot-code-mirror.
Editor composition and document behavior.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
‘text’ |
read |
‘text’, ‘python’, ‘javascript’, ‘typescript’, ‘json’, ‘html’, ‘css’, ‘xml’, ‘markdown’, ‘sql’, ‘typst’ |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
L |
4 |
read |
— |
|
L |
14 |
read |
— |
|
T |
‘monospace’ |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
|
B |
True |
read |
— |
htmlEditor
Rich HTML editing using the supported engine configuration.
Collection: editors. Browser element: gramlot-html-editor.
Editor composition and document behavior.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
htmlPreview
Read-only HTML preview with the component sanitization contract.
Collection: editors. Browser element: gramlot-html-preview.
Editor composition and document behavior.
Shared contracts: Values and bindings.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
markdownEditor
Markdown editing with the supported editor modes.
Collection: editors. Browser element: gramlot-markdown-editor.
Editor composition and document behavior.
Shared contracts: Values and bindings, Disabled, readonly and live updates, Labels and field presentation, Validation.
No additional component-specific parameters. Use the shared contracts above and ordinary Source/CSS attributes.
markdownPreview
Rendered Markdown preview.
Collection: editors. Browser element: gramlot-markdown-preview.
Editor composition and document behavior.
Shared contracts: Values and bindings.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
B |
False |
read |
— |
typstPreview
Typst document preview and optional client PDF compilation; compiler resources are separate from ordinary forms.
Collection: typst. Browser element: gramlot-typst-preview.
Typst compiler and resource ownership.
Shared contracts: Values and bindings.
Specific parameter |
Type |
Default |
Binding |
Allowed |
|---|---|---|---|---|
|
T |
‘document.pdf’ |
read |
— |