mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3924 - For ColumnGroup & Row
This commit is contained in:
parent
05cb0588da
commit
a52acf2a32
9 changed files with 159 additions and 6 deletions
29
components/lib/row/Row.d.ts
vendored
29
components/lib/row/Row.d.ts
vendored
|
@ -5,8 +5,37 @@
|
|||
*
|
||||
* @module row
|
||||
*/
|
||||
import { ColumnGroupPassThroughOptions } from '../columngroup';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type RowPassThroughOptionType = RowPassThroughAttributes | ((options: RowPassThroughMethodOptions) => RowPassThroughAttributes) | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface RowPassThroughMethodOptions {
|
||||
props: RowProps;
|
||||
parent: ColumnGroupPassThroughOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link RowProps.pt}
|
||||
*/
|
||||
export interface RowPassThroughOptions {
|
||||
/**
|
||||
* Uses to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: RowPassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough attributes for each DOM elements
|
||||
*/
|
||||
export interface RowPassThroughAttributes {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Row component.
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
|
||||
export default {
|
||||
name: 'Row',
|
||||
extends: BaseComponent,
|
||||
render() {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue