Skip to content

How to set Table's header? #1473

Answered by capdiem
dlyltm asked this question in Q&A
Aug 8, 2023 · 1 comments · 29 replies
Discussion options

You must be logged in to vote

@dlyltm All your problems can be solved with CSS. If all your datatable are the same UI, you can set the CSS settings globally:

/* set background color of header */
.m-data-table-header {
    background-color: pink;
}

/* add right border to th and td */
.m-data-table th, .m-data-table td {
  border-right: thin solid rgba(0,0,0,.12);
}

.m-data-table th:last-child, .m-data-table td:last-child {
    border-right: none;
}

vertically center the font. What I see is that the texts are on the top.

Can you provide UI screenshots?

Replies: 1 comment 29 replies

Comment options

You must be logged in to vote
29 replies
@dlyltm
Comment options

@capdiem
Comment options

capdiem Aug 10, 2023
Collaborator

Answer selected by dlyltm
@dlyltm
Comment options

@dlyltm
Comment options

@capdiem
Comment options

capdiem Sep 1, 2023
Collaborator

@dlyltm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants