DataTable with Borderless
Posted: 17 Feb 2020, 17:19
Hi,
How can i add style "Borderless" like Roma Theme in my datatable?
How can i add style "Borderless" like Roma Theme in my datatable?
Code: Select all
<p:dataTable styleClass="ui-datatable-borderless" ...>
Code: Select all
/* CSS code of .ui-datatable-borderless class */
body .ui-datatable.ui-datatable-borderless .ui-paginator-top {
border-left: 0 none;
border-right: 0 none;
border-bottom: 1px solid #d8d8dc;
}
body .ui-datatable.ui-datatable-borderless .ui-paginator-bottom {
border-left: 0 none;
border-right: 0 none;
border-top: 1px solid #d8d8dc;
}
body .ui-datatable.ui-datatable-borderless .ui-datatable-header {
border-top: 0 none;
border-left: 0 none;
border-right: 0 none;
}
body .ui-datatable.ui-datatable-borderless .ui-datatable-footer {
border-bottom: 0 none;
border-left: 0 none;
border-right: 0 none;
}
body .ui-datatable.ui-datatable-borderless thead > tr,
body .ui-datatable.ui-datatable-borderless thead tr th,
body .ui-datatable.ui-datatable-borderless .ui-datatable-data > tr,
body .ui-datatable.ui-datatable-borderless .ui-datatable-data,
body .ui-datatable.ui-datatable-borderless .ui-datatable-data tr td {
border: 0 none;
}