← DataGrid API

Component · v2.6.0

NgbDatagridSortToolComponent

NgbDatagridSortToolComponent component exported by the ngbootstrap package API.

Import

import { NgbDatagridSortToolComponent } from '@angular-bootstrap/ngbootstrap';

Selector:ngb-datagrid-sort-tool

Declaration

class NgbDatagridSortToolComponent implements NgbDatagridToolHost, OnInit, OnDestroy

Inputs

grid

grid?: Datagrid<any>

label

label: string

Default:'Sort'

Properties

open

open: boolean

Default:false

activeGrid

get activeGrid(): Datagrid<any>

sortableColumns

get sortableColumns(): ColumnDef<any>[]

Methods

bindHostGrid

bindHostGrid(grid: Datagrid<any>): void

togglePanel

togglePanel(event: MouseEvent): void

toggleSort

toggleSort(col: ColumnDef<any>): void

clearSorting

clearSorting(): void

closeOnOutsideClick

closeOnOutsideClick(event: MouseEvent): void

Referenced types

Source: src/datagrid/src/layout-toolbar/datagrid-sort-tool.component.ts in the installed @angular-bootstrap/ngbootstrap package. Angular compiler metadata and private members are omitted.

This project is not affiliated with ng-bootstrap or ngx-bootstrap. Those projects focus mainly on Bootstrap components for Angular. ngbootstrap focuses on Angular UI for data-heavy apps, especially Data Grid, Angular-native Form Builder, drag and drop workflows, documentation examples, and performance-focused Angular patterns.