Getting Started
UI
Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Icon
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner (Toast)
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
Forms
Stack
Data Table
Powerful table and datagrids similar powered by TanStack Table
0 of 5 row(s) selected
import { Component, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NgIcon, provideIcons } from '@ng-icons/core';
import { lucideChevronDown } from '@ng-icons/lucide';
import { HlmButtonImports } from '@spartan-ng/helm/button';
import { HlmDropdownMenuImports } from '@spartan-ng/helm/dropdown-menu';
import { HlmIconImports } from '@spartan-ng/helm/icon';
import { HlmInputImports } from '@spartan-ng/helm/input';
import { HlmTableImports } from '@spartan-ng/helm/table';
import { hlmMuted } from '@spartan-ng/helm/typography';
import {
type ColumnDef,
type ColumnFiltersState,
createAngularTable,
flexRenderComponent,
FlexRenderDirective,
getCoreRowModel,
getFilteredRowModel,
getPaginationRowModel,
getSortedRowModel,
type RowSelectionState,
type SortingState,
type VisibilityState,
} from '@tanstack/angular-table';
import { ActionDropdown } from './action-dropdown';
import { TableHeadSelection, TableRowSelection } from './selection-column';
import { TableHeadSortButton } from './sort-header-button';
export type Payment = {
id: string;
amount: number;
status: 'pending' | 'processing' | 'success' | 'failed';
email: string;
};
@Component({
selector: 'spartan-data-table-preview',
imports: [
FlexRenderDirective,
FormsModule,
HlmDropdownMenuImports,
HlmButtonImports,
NgIcon,
HlmIconImports,
HlmInputImports,
HlmTableImports,
],
providers: [provideIcons({ lucideChevronDown })],
host: {
class: 'w-full',
},
template: `
<div class="flex flex-col justify-between gap-4 py-4 sm:flex-row sm:items-center">
<input hlmInput class="w-full md:w-80" placeholder="Filter emails..." (input)="_filterChanged($event)" />
<button hlmBtn variant="outline" align="end" [hlmDropdownMenuTrigger]="menu">
Columns
<ng-icon hlm name="lucideChevronDown" class="ml-2" size="sm" />
</button>
<ng-template #menu>
<hlm-dropdown-menu class="w-32">
@for (column of _hidableColumns; track column.id) {
<button
hlmDropdownMenuCheckbox
class="capitalize"
[checked]="column.getIsVisible()"
(triggered)="column.toggleVisibility()"
>
<hlm-dropdown-menu-checkbox-indicator />
{{ column.columnDef.id }}
</button>
}
</hlm-dropdown-menu>
</ng-template>
</div>
<div class="overflow-hidden rounded-md border">
<!-- we defer the loading of the table, because tanstack manipulates the DOM with flexRender which can cause errors during SSR -->
@defer {
<div hlmTableContainer>
<table hlmTable>
<thead hlmTHead>
@for (headerGroup of _table.getHeaderGroups(); track headerGroup.id) {
<tr hlmTr>
@for (header of headerGroup.headers; track header.id) {
<th hlmTh [attr.colSpan]="header.colSpan">
@if (!header.isPlaceholder) {
<ng-container
*flexRender="header.column.columnDef.header; props: header.getContext(); let headerText"
>
<div [innerHTML]="headerText"></div>
</ng-container>
}
</th>
}
</tr>
}
</thead>
<tbody hlmTBody>
@for (row of _table.getRowModel().rows; track row.id) {
<tr hlmTr [attr.key]="row.id" [attr.data-state]="row.getIsSelected() && 'selected'">
@for (cell of row.getVisibleCells(); track $index) {
<td hlmTd>
<ng-container *flexRender="cell.column.columnDef.cell; props: cell.getContext(); let cell">
<div [innerHTML]="cell"></div>
</ng-container>
</td>
}
</tr>
} @empty {
<tr hlmTr>
<td hlmTd class="h-24 text-center" [attr.colspan]="_columns.length">No results.</td>
</tr>
}
</tbody>
</table>
</div>
}
</div>
<div class="flex flex-col justify-between py-4 sm:flex-row sm:items-center">
@if (_table.getRowCount() > 0) {
<div class="${hlmMuted}">
{{ _table.getSelectedRowModel().rows.length }} of {{ _table.getRowCount() }} row(s) selected
</div>
<div class="mt-2 flex space-x-2 sm:mt-0">
<button
size="sm"
variant="outline"
hlmBtn
[disabled]="!_table.getCanPreviousPage()"
(click)="_table.previousPage()"
>
Previous
</button>
<button size="sm" variant="outline" hlmBtn [disabled]="!_table.getCanNextPage()" (click)="_table.nextPage()">
Next
</button>
</div>
} @else {
<div class="flex h-full w-full items-center justify-center">
<div class="text-muted-foreground text-sm">No Data</div>
</div>
}
</div>
`,
})
export class DataTablePreview {
protected _filterChanged(event: Event) {
this._table.getColumn('email')?.setFilterValue((event.target as HTMLInputElement).value);
}
protected readonly _columns: ColumnDef<Payment>[] = [
{
id: 'select',
header: () => flexRenderComponent(TableHeadSelection),
cell: () => flexRenderComponent(TableRowSelection),
enableSorting: false,
enableHiding: false,
},
{
accessorKey: 'status',
id: 'status',
header: 'Status',
enableSorting: false,
cell: (info) => `<span class="capitalize">${info.getValue<string>()}</span>`,
},
{
accessorKey: 'email',
id: 'email',
header: () => flexRenderComponent(TableHeadSortButton, { inputs: { header: '' } }),
cell: (info) => `<div class="lowercase">${info.getValue<string>()}</div>`,
},
{
accessorKey: 'amount',
id: 'amount',
header: '<div class="text-right">Amount</div>',
enableSorting: false,
cell: (info) => {
const amount = parseFloat(info.getValue<string>());
const formatted = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
}).format(amount);
return `<div class="text-right">${formatted}</div>`;
},
},
{
id: 'actions',
enableHiding: false,
cell: () => flexRenderComponent(ActionDropdown),
},
];
private readonly _columnFilters = signal<ColumnFiltersState>([]);
private readonly _sorting = signal<SortingState>([]);
private readonly _rowSelection = signal<RowSelectionState>({});
private readonly _columnVisibility = signal<VisibilityState>({});
protected readonly _table = createAngularTable<Payment>(() => ({
data: PAYMENT_DATA,
columns: this._columns,
onSortingChange: (updater) => {
updater instanceof Function ? this._sorting.update(updater) : this._sorting.set(updater);
},
onColumnFiltersChange: (updater) => {
updater instanceof Function ? this._columnFilters.update(updater) : this._columnFilters.set(updater);
},
getCoreRowModel: getCoreRowModel(),
getPaginationRowModel: getPaginationRowModel(),
getSortedRowModel: getSortedRowModel(),
getFilteredRowModel: getFilteredRowModel(),
onColumnVisibilityChange: (updater) => {
updater instanceof Function ? this._columnVisibility.update(updater) : this._columnVisibility.set(updater);
},
onRowSelectionChange: (updater) => {
updater instanceof Function ? this._rowSelection.update(updater) : this._rowSelection.set(updater);
},
state: {
sorting: this._sorting(),
columnFilters: this._columnFilters(),
columnVisibility: this._columnVisibility(),
rowSelection: this._rowSelection(),
},
}));
protected readonly _hidableColumns = this._table.getAllColumns().filter((column) => column.getCanHide());
protected _filterChange(email: Event) {
const target = email.target as HTMLInputElement;
const typedValue = target.value;
this._table.setGlobalFilter(typedValue);
}
}
const PAYMENT_DATA: Payment[] = [
{
id: 'm5gr84i9',
amount: 316,
status: 'success',
email: 'ken99@yahoo.com',
},
{
id: '3u1reuv4',
amount: 242,
status: 'success',
email: 'Abe45@gmail.com',
},
{
id: 'derv1ws0',
amount: 837,
status: 'processing',
email: 'Monserrat44@gmail.com',
},
{
id: '5kma53ae',
amount: 874,
status: 'success',
email: 'Silas22@gmail.com',
},
{
id: 'bhqecj4p',
amount: 721,
status: 'failed',
email: 'carmella@hotmail.com',
},
];About
Data-Table is built on top of TanStack-Table by @tannerlinsley and the Table directives.
Installation
Add the Table directives to your project.
ng g @spartan-ng/cli:ui tablenx g @spartan-ng/cli:ui tableimport { DestroyRef, ElementRef, HostAttributeToken, Injector, PLATFORM_ID, effect, inject, runInInjectionContext } from '@angular/core';
import { clsx, type ClassValue } from 'clsx';
import { isPlatformBrowser } from '@angular/common';
import { twMerge } from 'tailwind-merge';
export function hlm(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// Global map to track class managers per element
const elementClassManagers = new WeakMap<HTMLElement, ElementClassManager>();
// Global mutation observer for all elements
let globalObserver: MutationObserver | null = null;
const observedElements = new Set<HTMLElement>();
interface ElementClassManager {
element: HTMLElement;
sources: Map<number, { classes: Set<string>; order: number }>;
baseClasses: Set<string>;
isUpdating: boolean;
nextOrder: number;
hasInitialized: boolean;
restoreRafId: number | null;
/** Transitions are suppressed until the first effect writes correct classes */
transitionsSuppressed: boolean;
/** Original inline transition value to restore after suppression (empty string = none was set) */
previousTransition: string;
/** Original inline transition priority to preserve !important when restoring */
previousTransitionPriority: string;
}
let sourceCounter = 0;
/**
* This function dynamically adds and removes classes for a given element without requiring
* the a class binding (e.g. `[class]="..."`) which may interfere with other class bindings.
*
* 1. This will merge the existing classes on the element with the new classes.
* 2. It will also remove any classes that were previously added by this function but are no longer present in the new classes.
* 3. Multiple calls to this function on the same element will be merged efficiently.
*/
export function classes(computed: () => ClassValue[] | string, options: ClassesOptions = {}) {
runInInjectionContext(options.injector ?? inject(Injector), () => {
const elementRef = options.elementRef ?? inject(ElementRef);
const platformId = inject(PLATFORM_ID);
const destroyRef = inject(DestroyRef);
const baseClasses = inject(new HostAttributeToken('class'), { optional: true });
const element = elementRef.nativeElement;
// Create unique identifier for this source
const sourceId = sourceCounter++;
// Get or create the class manager for this element
let manager = elementClassManagers.get(element);
if (!manager) {
// Initialize base classes from variation (host attribute 'class')
const initialBaseClasses = new Set<string>();
if (baseClasses) {
toClassList(baseClasses).forEach((cls) => initialBaseClasses.add(cls));
}
manager = {
element,
sources: new Map(),
baseClasses: initialBaseClasses,
isUpdating: false,
nextOrder: 0,
hasInitialized: false,
restoreRafId: null,
transitionsSuppressed: false,
previousTransition: '',
previousTransitionPriority: '',
};
elementClassManagers.set(element, manager);
// Setup global observer if needed and register this element
setupGlobalObserver(platformId);
observedElements.add(element);
// Suppress transitions until the first effect writes correct classes and
// the browser has painted them. This prevents CSS transition animations
// during hydration when classes change from SSR state to client state.
if (isPlatformBrowser(platformId)) {
manager.previousTransition = element.style.getPropertyValue('transition');
manager.previousTransitionPriority = element.style.getPropertyPriority('transition');
element.style.setProperty('transition', 'none', 'important');
manager.transitionsSuppressed = true;
}
}
// Assign order once at registration time
const sourceOrder = manager.nextOrder++;
function updateClasses(): void {
// Get the new classes from the computed function
const newClasses = toClassList(computed());
// Update this source's classes, keeping the original order
manager!.sources.set(sourceId, {
classes: new Set(newClasses),
order: sourceOrder,
});
// Update the element
updateElement(manager!);
// Re-enable transitions after the first effect writes correct classes.
// Deferred to next animation frame so the browser paints the class change
// with transitions disabled first, then re-enables them.
if (manager!.transitionsSuppressed) {
manager!.transitionsSuppressed = false;
manager!.restoreRafId = requestAnimationFrame(() => {
manager!.restoreRafId = null;
restoreTransitionSuppression(manager!);
});
}
}
// Register cleanup with DestroyRef
destroyRef.onDestroy(() => {
if (manager!.restoreRafId !== null) {
cancelAnimationFrame(manager!.restoreRafId);
manager!.restoreRafId = null;
}
if (manager!.transitionsSuppressed) {
manager!.transitionsSuppressed = false;
restoreTransitionSuppression(manager!);
}
// Remove this source from the manager
manager!.sources.delete(sourceId);
// If no more sources, clean up the manager
if (manager!.sources.size === 0) {
cleanupManager(element);
} else {
// Update element without this source's classes
updateElement(manager!);
}
});
/**
* We need this effect to track changes to the computed classes. Ideally, we would use
* afterRenderEffect here, but that doesn't run in SSR contexts, so we use a standard
* effect which works in both browser and SSR.
*/
effect(updateClasses);
});
}
function restoreTransitionSuppression(manager: ElementClassManager): void {
const prev = manager.previousTransition;
if (prev) {
manager.element.style.setProperty('transition', prev, manager.previousTransitionPriority || undefined);
} else {
manager.element.style.removeProperty('transition');
}
}
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
function setupGlobalObserver(platformId: Object): void {
if (isPlatformBrowser(platformId) && !globalObserver) {
// Create single global observer that watches the entire document
globalObserver = new MutationObserver((mutations) => {
for (const mutation of mutations) {
if (mutation.type === 'attributes' && mutation.attributeName === 'class') {
const element = mutation.target as HTMLElement;
const manager = elementClassManagers.get(element);
// Only process elements we're managing
if (manager && observedElements.has(element)) {
if (manager.isUpdating) continue; // Ignore changes we're making
// Update base classes to include any externally added classes
const currentClasses = toClassList(element.className);
const allSourceClasses = new Set<string>();
// Collect all classes from all sources
for (const source of manager.sources.values()) {
for (const className of source.classes) {
allSourceClasses.add(className);
}
}
// Any classes not from sources become new base classes
manager.baseClasses.clear();
for (const className of currentClasses) {
if (!allSourceClasses.has(className)) {
manager.baseClasses.add(className);
}
}
updateElement(manager);
}
}
}
});
// Start observing the entire document for class attribute changes
globalObserver.observe(document, {
attributes: true,
attributeFilter: ['class'],
subtree: true, // Watch all descendants
});
}
}
function updateElement(manager: ElementClassManager): void {
if (manager.isUpdating) return; // Prevent recursive updates
manager.isUpdating = true;
// Handle initialization: capture base classes after first source registration
if (!manager.hasInitialized && manager.sources.size > 0) {
// Get current classes on element (may include SSR classes)
const currentClasses = toClassList(manager.element.className);
// Get all classes that will be applied by sources
const allSourceClasses = new Set<string>();
for (const source of manager.sources.values()) {
source.classes.forEach((className) => allSourceClasses.add(className));
}
// Only consider classes as "base" if they're not produced by any source
// This prevents SSR-rendered classes from being preserved as base classes
currentClasses.forEach((className) => {
if (!allSourceClasses.has(className)) {
manager.baseClasses.add(className);
}
});
manager.hasInitialized = true;
}
// Get classes from all sources, sorted by registration order (later takes precedence)
const sortedSources = Array.from(manager.sources.entries()).sort(([, a], [, b]) => a.order - b.order);
const allSourceClasses: string[] = [];
for (const [, source] of sortedSources) {
allSourceClasses.push(...source.classes);
}
// Combine base classes with all source classes, ensuring base classes take precedence
const classesToApply =
allSourceClasses.length > 0 || manager.baseClasses.size > 0
? hlm([...allSourceClasses, ...manager.baseClasses])
: '';
// Apply the classes to the element
if (manager.element.className !== classesToApply) {
manager.element.className = classesToApply;
}
manager.isUpdating = false;
}
function cleanupManager(element: HTMLElement): void {
// Remove from global tracking
observedElements.delete(element);
elementClassManagers.delete(element);
// If no more elements being tracked, cleanup global observer
if (observedElements.size === 0 && globalObserver) {
globalObserver.disconnect();
globalObserver = null;
}
}
interface ClassesOptions {
elementRef?: ElementRef<HTMLElement>;
injector?: Injector;
}
// Cache for parsed class lists to avoid repeated string operations
const classListCache = new Map<string, string[]>();
function toClassList(className: string | ClassValue[]): string[] {
// For simple string inputs, use cache to avoid repeated parsing
if (typeof className === 'string' && classListCache.has(className)) {
return classListCache.get(className)!;
}
const result = clsx(className)
.split(' ')
.filter((c) => c.length > 0);
// Cache string results, but limit cache size to prevent memory growth
if (typeof className === 'string' && classListCache.size < 1000) {
classListCache.set(className, result);
}
return result;
}import { Directive, InjectionToken, computed, inject, input, type ValueProvider } from '@angular/core';
import { classes } from '@spartan-ng/helm/utils';
// Configuration Interface and InjectionToken
export const HlmTableConfigToken = new InjectionToken<HlmTableVariant>('HlmTableConfig');
export interface HlmTableVariant {
tableContainer: string;
table: string;
thead: string;
tbody: string;
tfoot: string;
tr: string;
th: string;
td: string;
caption: string;
}
export const HlmTableVariantDefault: HlmTableVariant = {
tableContainer: 'relative w-full overflow-x-auto',
table: 'w-full caption-bottom text-sm',
thead: '[&_tr]:border-b',
tbody: '[&_tr:last-child]:border-0',
tfoot: 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',
tr: 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',
th: 'text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0',
td: 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0',
caption: 'text-muted-foreground mt-4 text-sm',
};
export function provideHlmTableConfig(config: Partial<HlmTableVariant>): ValueProvider {
return {
provide: HlmTableConfigToken,
useValue: { ...HlmTableVariantDefault, ...config },
};
}
export function injectHlmTableConfig(): HlmTableVariant {
return inject(HlmTableConfigToken, { optional: true }) ?? HlmTableVariantDefault;
}
@Directive({
selector: 'div[hlmTableContainer]',
host: { 'data-slot': 'table-container' },
})
export class HlmTableContainer {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.tableContainer.trim() : ''));
}
}
/**
* Directive to apply Shadcn-like styling to a <table> element.
* It resolves and provides base classes for its child table elements.
* If a table has the `hlmTable` attribute, it will be styled with the provided variant.
* The other table elements will check if a parent table has the `hlmTable` attribute and will be styled accordingly.
*/
@Directive({
selector: 'table[hlmTable]',
host: { 'data-slot': 'table' },
})
export class HlmTable {
/** Input to configure the variant of the table, this input has the highest priority. */
public readonly userVariant = input<Partial<HlmTableVariant> | string>({}, { alias: 'hlmTable' });
/** Global or default configuration provided by injectHlmTableConfig() */
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
// Protected variant that resolves user input to a full HlmTableVariant
protected readonly _variant = computed<HlmTableVariant>(() => {
const globalOrDefaultConfig = this._globalOrDefaultConfig;
const localInputConfig = this.userVariant();
// Priority 1: Local input object
if (typeof localInputConfig === 'object' && localInputConfig !== null && Object.keys(localInputConfig).length > 0) {
// Merge local input with the baseline provided by injectHlmTableConfig()
// This ensures that properties not in localInputConfig still fall back to global/default values.
return { ...globalOrDefaultConfig, ...localInputConfig };
}
// If localInputConfig is not a non-empty object (e.g., it's undefined, an empty object, or a string),
// then the globalOrDefaultConfig (which is already the result of injected OR default) is used.
return globalOrDefaultConfig;
});
constructor() {
classes(() => this._variant().table);
}
}
// Computed class for the host <table> element}
/**
* Directive to apply Shadcn-like styling to a <thead> element
* within an HlmTableDirective context.
*/
@Directive({
selector: 'thead[hlmTHead]',
host: { 'data-slot': 'table-header' },
})
export class HlmTHead {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.thead.trim() : ''));
}
}
/**
* Directive to apply Shadcn-like styling to a <tbody> element
* within an HlmTableDirective context.
*/
@Directive({
selector: 'tbody[hlmTBody]',
host: { 'data-slot': 'table-body' },
})
export class HlmTBody {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.tbody.trim() : ''));
}
}
/**
* Directive to apply Shadcn-like styling to a <tfoot> element
* within an HlmTableDirective context.
*/
@Directive({
selector: 'tfoot[hlmTFoot]',
host: { 'data-slot': 'table-footer' },
})
export class HlmTFoot {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.tfoot.trim() : ''));
}
}
/**
* Directive to apply Shadcn-like styling to a <tr> element
* within an HlmTableDirective context.
*/
@Directive({
selector: 'tr[hlmTr]',
host: { 'data-slot': 'table-row' },
})
export class HlmTr {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.tr.trim() : ''));
}
}
/**
* Directive to apply Shadcn-like styling to a <th> element
* within an HlmTableDirective context.
*/
@Directive({
selector: 'th[hlmTh]',
host: { 'data-slot': 'table-head' },
})
export class HlmTh {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.th.trim() : ''));
}
}
/**
* Directive to apply Shadcn-like styling to a <td> element
* within an HlmTableDirective context.
*/
@Directive({
selector: 'td[hlmTd]',
host: { 'data-slot': 'table-cell' },
})
export class HlmTd {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.td.trim() : ''));
}
}
/**
* Directive to apply Shadcn-like styling to a <caption> element
* within an HlmTableDirective context.
*/
@Directive({
selector: 'caption[hlmCaption]',
host: { 'data-slot': 'table-caption' },
})
export class HlmCaption {
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
constructor() {
classes(() => (this._globalOrDefaultConfig ? this._globalOrDefaultConfig.caption.trim() : ''));
}
}
export const HlmTableImports = [
HlmCaption,
HlmTableContainer,
HlmTable,
HlmTBody,
HlmTd,
HlmTFoot,
HlmTh,
HlmTHead,
HlmTr,
] as const; Add @tanstack/angular-table to your project, more information in the TanStack Table documentation.
npm install @tanstack/angular-tableExamples
For more information you can check out our Tasks example and have a look at the documentation of TanStack Table . TanStack Table provides multiple examples on GitHub and interactive examples on the documentation site. These examples are unstyled and can be used as a foundation for your own implementations using the Table directives to apply consistent styling. Here are some examples to get you started:
- Basic - A basic table example with multiple columns
- Column Visibility - An example of how to implement column visibility
- Column Filters - An example of how to implement column filters
- Row Selection - An example of how to implement row selection
On This Page
Stop configuring. Start shipping.
Zerops powers spartan.ng and Angular teams worldwide.
One-command deployment. Zero infrastructure headaches.
Deploy with Zerops