chore: initial deploy for code base
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user