GridIcons
Grid-wide icon configuration. All icons are optional - sensible defaults are used when not specified.
Icons can be text (including emoji), HTML strings (for SVG), or HTMLElement instances.
Example
Section titled “Example”grid.gridConfig = { icons: { // Emoji icons expand: '➕', collapse: '➖',
// Custom SVG icon sortAsc: '<svg viewBox="0 0 16 16"><path d="M8 4l4 8H4z"/></svg>',
// Font icon class (wrap in span) filter: '<span class="icon icon-filter"></span>', },};Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
expand? | IconValue | Expand icon for collapsed items (trees, groups, details). Default: ’▶‘ |
collapse? | IconValue | Collapse icon for expanded items (trees, groups, details). Default: ’▼‘ |
sortAsc? | IconValue | Sort ascending indicator. Default: ’▲‘ |
sortDesc? | IconValue | Sort descending indicator. Default: ’▼‘ |
sortNone? | IconValue | Sort neutral/unsorted indicator. Default: ’⇅‘ |
submenuArrow? | IconValue | Submenu arrow for context menus. Default: ’▶‘ |
dragHandle? | IconValue | Drag handle icon for reordering. Default: ’⋮⋮‘ |
toolPanel? | IconValue | Tool panel toggle icon in toolbar. Default: ’☰‘ |
filter? | IconValue | Filter icon in column headers. Default: SVG funnel icon |
filterActive? | IconValue | Filter icon when filter is active. Default: same as filter with accent color |
print? | IconValue | Print icon for print button. Default: ‘🖨️’ |
See Also
Section titled “See Also”IconValuefor allowed icon formats
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt