Remove datatable header with key
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please provide more details about your requirement.
i want to remove the headers of datatable i know how to do in CSS globally like that
.ui-datatable thead {
display: none
}
It works fine but it remove the headers from all the datatable of my application.
I just wanted to know is there any way to add key in css settings so that would help me to remove the datatable headers where is required.
.ui-datatable thead {
display: none
}
It works fine but it remove the headers from all the datatable of my application.
I just wanted to know is there any way to add key in css settings so that would help me to remove the datatable headers where is required.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
But it will corrupt the visual state, why not hide the content of headers? I guess you can do it with a condition;
Code: Select all
<p-column styleClass="condition ? 'hidden-header': null"
Code: Select all
.hidden-header.th * {
display:none
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests