Lattice Grid Buy a licence

demo D186

Shadow columns: rate and streak

Speed of change, direction runs, and a sparkline of recent history

shadow: { of, kind: 'rate' }

Building…
Loading a live grid…

The configuration

import * as ng from '@angular/core';
import { Component } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
import { createGrid } from '@toclocoinc/lattice-grid';
import '@toclocoinc/lattice-grid/css';
import createLatticeGrid from '@toclocoinc/lattice-grid/modules/angular';

const { LatticeGridComponent } = createLatticeGrid({ ng, createGrid });

const columns = [
  { field: 'symbol', title: 'Symbol', layout: { pin: 'start', width: 120 } },
  { field: 'price', title: 'Price', type: 'number' },
  { id: 'rate',  title: 'Per second', shadow: { of: 'price', kind: 'rate' }, type: 'number', format: { signed: true } },
  { id: 'since', title: 'Since move', shadow: { of: 'price', kind: 'sinceUpdate' }, type: 'duration' },
  { id: 'hist',  title: 'Recent', shadow: { of: 'price', kind: 'history' }, cell: { render: 'line' } },
];

const rows = [/* a live price book */];



@Component({
  selector: 'app-root',
  standalone: true,
  imports: [LatticeGridComponent],
  template: '<lattice-grid [config]="grid" style="display:block;height:460px"></lattice-grid>',
})
export class AppComponent {
  grid = {
    rowKey: 'id',
    highlightOnChange: { duration: 500 },
    columns: columns,
    rows: rows,
  };
}

bootstrapApplication(AppComponent);