UNPKG

@vonage/vivid-react

Version:

Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings

43 lines (42 loc) 2.26 kB
import React, { ReactNode, SyntheticEvent } from 'react'; /** VwcDataGridCell * For more info on this Vivid element please visit https://vivid.deno.dev/components/data-grid-cell * @param {boolean | undefined} ariaSelected **attribute** `aria-selected` * @param {DataGridCellTypes} cellType - The type of cell **attribute** `cell-type` * @param {string} gridColumn - The column index of the cell. This will be applied to the css grid-column-index value applied to the cell **attribute** `grid-column` * @param {object | null} rowData - The base data for the parent row * @param {ColumnDefinitionExtended | null} columnDefinition - The base data for the column * @param {boolean} selected - Reflects selected state of the row **attribute** `selected` * @param {string | null} ariaSelected - Indicates the selected status. **attribute** `aria-selected` * @param {string | null} ariaSort - Indicates the sort status. **attribute** `aria-sort` * @param {DataGridCellSortStates | undefined} sortDirection - Sets the sorting direction. **attribute** `sort-direction` * @param {string} VIVID_VERSION - The current version of the Vivid library, which is useful for debugging. It can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`. * @param {string} componentName - Core component name, without prefix */ declare const VwcDataGridCell: { (props: { children?: ReactNode; slot?: string | undefined; id?: string | undefined; style?: React.CSSProperties | undefined; ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined; onSort?: ((event: SyntheticEvent) => void) | undefined; onCellClick?: ((event: SyntheticEvent) => void) | undefined; onCellFocused?: ((event: SyntheticEvent) => void) | undefined; ariaSelected?: any; cellType?: any; gridColumn?: string | undefined; rowData?: any; columnDefinition?: any; selected?: boolean | undefined; ariaSort?: string | null | undefined; sortDirection?: any; VIVID_VERSION?: string | undefined; componentName?: string | undefined; }): JSX.Element; displayName: string; }; export default VwcDataGridCell;