All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gridpackage.src.vaadin-grid-sort-column.d.ts Maven / Gradle / Ivy

The newest version!
/**
 * @license
 * Copyright (c) 2016 - 2024 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
import type { GridDefaultItem } from './vaadin-grid.js';
import type { GridColumn, GridColumnMixin } from './vaadin-grid-column.js';
import type { GridSortColumnEventMap, GridSortColumnMixinClass } from './vaadin-grid-sort-column-mixin.js';

export * from './vaadin-grid-sort-column-mixin.js';

/**
 * `` is a helper element for the ``
 * that provides default header renderer and functionality for sorting.
 *
 * #### Example:
 * ```html
 * 
 *  
 *
 *  
 *    ...
 * ```
 */
declare class GridSortColumn extends HTMLElement {}

interface GridSortColumn
  extends GridSortColumnMixinClass,
    GridColumnMixin>,
    GridColumn {
  addEventListener(
    type: K,
    listener: (this: GridSortColumn, ev: GridSortColumnEventMap[K]) => void,
    options?: AddEventListenerOptions | boolean,
  ): void;

  removeEventListener(
    type: K,
    listener: (this: GridSortColumn, ev: GridSortColumnEventMap[K]) => void,
    options?: EventListenerOptions | boolean,
  ): void;
}

declare global {
  interface HTMLElementTagNameMap {
    'vaadin-grid-sort-column': GridSortColumn;
  }
}

export { GridSortColumn };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy