primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
83 lines (77 loc) • 2.3 kB
TypeScript
/**
*
* Columns can be grouped at header and footer sections by defining a ColumnGroup component.
* It is a helper component for DataTable.
*
* [Live Demo](https://www.primereact.org/datatable/)
*
* @module columngroup
*
*/
import * as React from 'react';
import { ComponentHooks } from '../componentbase/componentbase';
import { DataTablePassThroughOptions } from '../datatable/datatable';
import { PassThroughOptions } from '../passthrough';
import { PassThroughType } from '../utils/utils';
export declare type ColumnGroupPassThroughType<T> = PassThroughType<T, ColumnGroupPassThroughMethodOptions>;
/**
* Custom passthrough(pt) option method.
*/
export interface ColumnGroupPassThroughMethodOptions {
props: ColumnGroupProps;
parent: DataTablePassThroughOptions;
}
/**
* Custom passthrough(pt) options.
* @see {@link ColumnGroupProps.pt}
*/
export interface ColumnGroupPassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
*/
root?: ColumnGroupPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Used to manage all lifecycle hooks
* @see {@link ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Defines valid properties in ColumnGroup component.
* @group Properties
*/
// tslint:disable-next-line:no-empty-interface
export interface ColumnGroupProps {
/**
* Used to get the child elements of the component.
* @readonly
*/
children?: React.ReactNode | undefined;
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {ColumnGroupPassThroughOptions}
*/
pt?: ColumnGroupPassThroughOptions;
/**
* Used to configure passthrough(pt) options of the component.
* @type {PassThroughOptions}
*/
ptOptions?: PassThroughOptions;
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
*/
unstyled?: boolean;
}
/**
* **PrimeReact - ColumnGroup**
*
* _It is a helper component for DataTable._
*
* [Live Demo](https://www.primereact.org/columngroup/)
* --- ---
* 
*
* @group Component
*/
export declare class ColumnGroup extends React.Component<ColumnGroupProps, any> {}