Grid status line
Sort a column in the example to update the status line.
import { GridStatusLinePlugin } from '@revolist/revogrid-pro';
grid.gridStatusLine = { sortLabel: (sort) => Object.keys(sort).length ? Object.entries(sort) .map(([column, direction]) => `${column}: ${direction}`) .join(', ') : 'Original order', legends: [ { label: 'Series', items: [ { id: 'current', label: 'Current', marker: 'line', color: '#6647f0' }, ], }, ],};grid.plugins = [GridStatusLinePlugin];Set the configuration before connecting the grid. sortLabel receives a map of column properties to asc or desc and is called when sorting completes. Supply translated text and colors from the host. Optional legend markers support solid, outline, dashed and line. The plugin removes its status node on destruction.