Component examples
- Bind a local array of row objects
Display a plain in-memory array by mapping columns to object keys.
- Button form submit and reset
Use a WarButton to submit or reset a native form.
- Button in link mode
Set a destination to provide navigation with button styling.
- Button sizes and width
Choose a size and optionally fill the available width.
- Button start and end slots
Give the label a leading or trailing visual cue.
- Button theming and density
Set a theme and density on any container to scope tokens.
- Button variants
Use a variant to set the visual emphasis of an action.
- Data engine boundary
Switch between an in-memory source and a simulated async server without changing columns or the grid.
- Declarative JSON layout tree
The whole workspace is described by one plain JSON object with nested nodes. Edit the JSON and apply it to re-render the dock.
- Deterministic update batching
Compare automatic microtask batching, explicit batches, and synchronous commits.
- Disabled and soft-disabled buttons
Compare a disabled action with a discoverable action that cannot be activated.
- Document area vs tool panes
A central document area holds open documents while tool panes dock around it. Documents and tool panes have different default behaviours and can be read separately.
- DOM ownership contract
The grid owns its root, sets one attribute on the container and exposes toolbar, empty and footer slots.
- Focus ownership and restoration
A virtualised grid whose logical focus is keyed by row and column ID and mapped to one roving tab stop.
- Form-associated fixture
Change the input label, active state, and value on a WarUI custom element.
- Grid lifecycle phases
Follow attach, ready, detach and disposal while moving one grid between containers.
- Grid resource disposal
Track browser resources as grids mount and unmount.
- Grid selector subscriptions
Track three independent state selections and compare reference equality with shallow equality.
- Headless grid instance
Call createGrid with rows and columns in the main thread or a Web Worker.
- Icon-only button
Use an explicit label when the button has only an icon.
- Immutable grid snapshots
Inspect versioned grid state and compare the references of each slice after a change.
- Infinite scroll blocks with unknown total
Load fixed-size blocks from a feed with no total and detect the end of data.
- Live query AST inspector
Watch the versioned query AST update as you sort, filter and page a product grid.
- Loading button
Mark the action as busy while work is in progress.
- Loading placeholder rows
Show fixed-height placeholder rows for indices that are in the scroll range but not loaded yet.
- Local command log and replay
Capture committed grid changes in a bounded JSON log and replay them into a fresh instance.
- Minimal calendar mount
Mount a WarCalendar into a host element with no options and get a default month view.
- Multiple renderer adapters
Render the same state as a compact grid and plain text.
- Plugin engine and registration
Register plugins with dependencies and lifecycle hooks, and see the resolved order.
- Query engine boundary
Sort, filter, grouping and paging as one serialisable descriptor, shown beside the grid.
- Region visibility toggles
Show or hide the header, toolbar and footer with options. Hidden regions are removed from the DOM.
- Remote data source contract
Load rows by index window from a simulated server without holding the full dataset.
- Right-to-left button layout
Set text direction on the container to mirror the button layout.
- Server-driven total count
Size the scrollbar from a server-reported total that is exact, estimated or unknown.
- Shared configuration contract
One serializable grid configuration with validation and per-adapter bindings.
- Shell regions
The calendar shell has four regions in a fixed order: header, toolbar, body and footer.
- Split nodes: orientation and proportional sizes
A split node arranges its children horizontally or vertically and stores each child share of the space in the model.
- Stable row identity
Refresh and reorder product objects while keeping stable selected row IDs.
- Staged row model pipeline
Inspect the output size and recompute count of every stage.
- Tab group nodes with active tab state
A tab group holds an ordered list of panes and records which pane is active. Order and active tab are part of the model.
- Typed grid column definitions
Edit column definitions. A valueGetter takes precedence over field lookup in TypeScript.
- Typed grid events
Subscribe to committed grid events and inspect their local payloads.
- Vanilla ES module mount and destroy
Mount a grid into a container with no framework and destroy it without leaks.
- Versioned grid API and capabilities
Inspect the API version and register optional capabilities.