/** * 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.primevue.org/datatable/) * @module columngroup */ import { ComponentHooks } from '../basecomponent'; import { DataTablePassThroughOptions } from '../datatable'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; export declare type ColumnGroupPassThroughOptionType = ColumnGroupPassThroughAttributes | ((options: ColumnGroupPassThroughMethodOptions) => ColumnGroupPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface ColumnGroupPassThroughMethodOptions { instance: any; props: ColumnGroupProps; parent: DataTablePassThroughOptions; context: ColumnGroupContext; } /** * Custom passthrough(pt) options. * @see {@link ColumnGroupProps.pt} */ export interface ColumnGroupPassThroughOptions { /** * Uses to pass attributes to the root's DOM element. */ root?: ColumnGroupPassThroughOptionType; /** * Uses to manage all lifecycle hooks * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } /** * Custom passthrough attributes for each DOM elements */ export interface ColumnGroupPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in ColumnGroup component. */ export interface ColumnGroupProps { /** * Type of column group */ type?: 'header' | 'footer' | undefined; /** * Uses to pass attributes to DOM elements inside the component. * @type {ColumnGroupPassThroughOptions} */ pt?: ColumnGroupPassThroughOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false */ unstyled?: boolean; } /** * Defines current options in ColumnGroup component. */ export interface ColumnGroupContext { /** * Current type of the column group. */ type: string; } /** * Defines valid slots in ColumnGroup component. */ export interface ColumnGroupSlots {} /** * Defines valid emits in ColumnGroup component. */ export interface ColumnGroupEmits {} /** * **PrimeVue - ColumnGroup** * * _It is a helper component for DataTable._ * * [Live Demo](https://www.primevue.org/datatable/) * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) * * @group Component */ declare class ColumnGroup extends ClassComponent {} declare module '@vue/runtime-core' { interface GlobalComponents { ColumnGroup: GlobalComponentConstructor; } } export default ColumnGroup;