diff --git a/components/column/column.ts b/components/column/column.ts index 896129f431e..247e0014f7c 100644 --- a/components/column/column.ts +++ b/components/column/column.ts @@ -19,6 +19,7 @@ export class Column { @Input() colspan: number; @Input() style: string; @Input() styleClass: string; + @Input() hidden: boolean; @ContentChild(TemplateRef) template: TemplateRef; } \ No newline at end of file diff --git a/components/datatable/datatable.ts b/components/datatable/datatable.ts index acaab55367f..6292656e137 100644 --- a/components/datatable/datatable.ts +++ b/components/datatable/datatable.ts @@ -22,7 +22,7 @@ import {DomHandler} from '../dom/domhandler'; - - + @@ -56,7 +56,7 @@ import {DomHandler} from '../dom/domhandler'; -
{{col.header}} @@ -33,7 +33,7 @@ import {DomHandler} from '../dom/domhandler';
{{col.header}}
{{col.footer}}{{col.footer}}
{{col.footer}}
{{col.header}} {{resolveFieldData(rowData,col.field)}} @@ -75,7 +75,7 @@ import {DomHandler} from '../dom/domhandler'; - - + + + + + +
{{col.header}} @@ -94,7 +94,8 @@ import {DomHandler} from '../dom/domhandler';
+ {{col.header}} {{resolveFieldData(rowData,col.field)}} diff --git a/showcase/demo/datatable/datatabledemo.html b/showcase/demo/datatable/datatabledemo.html index 050b80c5f77..6fb873a470a 100644 --- a/showcase/demo/datatable/datatabledemo.html +++ b/showcase/demo/datatable/datatabledemo.html @@ -179,6 +179,12 @@

Attributes

null Style class of the column.
hiddenbooleanfalseControls visiblity of the column.