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

package.src.vaadin-grid-selection-column.d.ts Maven / Gradle / Ivy

/**
 * @license
 * Copyright (c) 2016 - 2023 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 { GridColumnMixin } from './vaadin-grid-column.js';
import type { GridColumn } from './vaadin-grid-column.js';
import type {
  GridSelectionColumnEventMap,
  GridSelectionColumnMixinClass,
} from './vaadin-grid-selection-column-mixin.js';

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

/**
 * `` is a helper element for the ``
 * that provides default renderers and functionality for item selection.
 *
 * #### Example:
 * ```html
 * 
 *  
 *
 *  
 *    ...
 * ```
 *
 * By default the selection column displays `` elements in the
 * column cells. The checkboxes in the body rows toggle selection of the corresponding row items.
 *
 * When the grid data is provided as an array of [`items`](#/elements/vaadin-grid#property-items),
 * the column header gets an additional checkbox that can be used for toggling
 * selection for all the items at once.
 *
 * __The default content can also be overridden__
 */
declare class GridSelectionColumn extends HTMLElement {}

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

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

declare global {
  interface HTMLElementTagNameMap {
    'vaadin-grid-selection-column': GridSelectionColumn;
  }
}

export { GridSelectionColumn };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy