UNPKG

@haxtheweb/haxcms-nodejs

Version:

HAXcms single and multisite nodejs server, api, and administration

55 lines (44 loc) 1.81 kB
/** * DO NOT EDIT * * This file was automatically generated by * https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations * * To modify these typings, edit the source file(s): * src/vaadin-grid-styling-mixin.js */ // tslint:disable:variable-name Describing an API that's defined elsewhere. // tslint:disable:no-any describes the API as best we are able today export {StylingMixin}; declare function StylingMixin<T extends new (...args: any[]) => {}>(base: T): T & StylingMixinConstructor; interface StylingMixinConstructor { new(...args: any[]): StylingMixin; } export {StylingMixinConstructor}; interface StylingMixin { /** * A function that allows generating CSS class names for grid cells * based on their row and column. The return value should be the generated * class name as a string, or multiple class names separated by whitespace * characters. * * Receives two arguments: * - `column` The `<vaadin-grid-column>` element (`undefined` for details-cell). * - `model` The object with the properties related with * the rendered item, contains: * - `model.index` The index of the item. * - `model.item` The item. * - `model.expanded` Sublevel toggle state. * - `model.level` Level of the tree represented with a horizontal offset of the toggle button. * - `model.selected` Selected state. */ cellClassNameGenerator: GridCellClassNameGenerator|null|undefined; /** * Runs the `cellClassNameGenerator` for the visible cells. * If the generator depends on varying conditions, you need to * call this function manually in order to update the styles when * the conditions change. */ generateCellClassNames(): void; } import {GridCellClassNameGenerator} from '../@types/interfaces';