BluGrid
Explore filtering, selection, bulk edits, row actions, and expandable details.
Live TypeScript example
Try the component here, then use the source below in your application.
Edit a cell, then save. This example stores changes in this browser.
import '@bluui/web/styles.css'
import { createGrid } from "@bluui/web/grid";
import "@bluui/web/grid.css";
interface Customer {
Id: number;
Name: string;
Seats: number;
}
export function mount(host: HTMLElement) {
const toolbar = document.createElement("div"),
save = document.createElement("button"),
output = document.createElement("p");
output.setAttribute("role", "status");
save.textContent = "Save changes";
save.type = "button";
toolbar.append(save, output);
host.append(toolbar);
const grid = createGrid<Customer>(host, {
RowKeyField: "Id",
Columns: [
{ Field: "Name", Header: "Customer", IsEditable: true, Flex: 1 },
{ Field: "Seats", Type: "Number", IsEditable: true },
],
Rows: [
{ Id: 1, Name: "Atlas Labs", Seats: 12 },
{ Id: 2, Name: "Northstar", Seats: 24 },
],
Config: {
Height: "360px",
SelectionMode: "Multiple",
EnablePagination: true,
PageSize: 10,
},
Events: {
OnEditStateChanged: (state) => {
save.disabled = !state.HasChanges || state.IsSaving;
},
},
});
save.onclick = async () => {
const request = await grid.beginSave();
if (!request.SaveToken) return;
try {
// Replace this local persistence with a validated backend request returning canonical rows.
localStorage.setItem("bluui-starter-grid", JSON.stringify(request.Rows));
grid.completeSave(request.SaveToken, request.Rows);
output.textContent = "Saved in this browser.";
} catch {
grid.failSave(request.SaveToken, [
{
RowId: "",
Field: "",
Code: "SAVE_FAILED",
Message: "Could not save. Retry your changes.",
},
]);
}
};
return {
destroy() {
grid.destroy();
toolbar.remove();
},
};
}
const instance = mount(document.getElementById('example')!)
// When this page or framework component is removed:
// instance.destroy()
Install the library and add the host element
npm install https://bluui.blutekmedia.com/downloads/bluui-web-0.2.6.tgz<div id="example"></div>This example uses the downloadable @bluui/web package. Your application handles persistence and authentication through its typed callbacks. The starter ZIP includes this same example.
This reference documents the published Block’s parameters, events, and types. The web examples adapt those inputs to browser callbacks. Open native showcase ↗
- Web examples
- Supported4 states checked · no automated failures
- TypeScript
- Supported2 states checked · no automated failures
- OutSystems
- Needs work2 states checked · 2 rule failures
Minimum requirement: WCAG 2.1 AA. Supported means the listed checks passed; full conformance is not yet declared.
Evidence and remaining verification →Purpose and use
Use BluGrid for structured records that people compare, filter, and edit. Keep drafts visible until the whole save succeeds.
Keyboard design guidance
Use the grid’s arrow-key navigation, Enter to edit, and Escape to cancel an editor. Label toolbar controls and show save errors beside retained drafts.
This describes the intended interaction. The dated audit above identifies verified behavior and current gaps.
In your application
Provide useful labels, preserve visible focus, and test the component with your actual content. Use text alongside status colors and check contrast in each state.
Events0No events yet.
Interact with an example to see its events.