Files
tempo/ui/src/datacolumn/EmptyColumn.tsx
T

35 lines
881 B
TypeScript

import * as React from "react";
import { ColumnProps } from "primereact/column";
import { IColumn } from "./IColumn";
export interface IEmptyColumnProps {
}
/**
* @beta
*/
const EmptyColumn: React.FC<IEmptyColumnProps> & IColumn = (props: IEmptyColumnProps) => {
// Note this class is only for intellisense with typescript.
// The column component for a datagrid is never rendered. It is only used to propagate props.
// Component lifecycle and constructor will never be called.
// Don't put any logic here. It will never be called.
// In case you didn't read above, DO NOT PUT ANY LOGIC HERE.
return null;
}
EmptyColumn.className = "EmptyColumn";
EmptyColumn.getColumnProps = (props: any): ColumnProps => {
return {
className: "p-column-empty",
style: {
width: "*"
}
};
}
export default EmptyColumn;