Bootstrap table ellipsis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.table.table-ellipsis tbody td { | |
max-width: 100px; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap | |
} |
Nice!
Suggestion: You could enhance it using CSS pseudo class active to simulate “onclick/selection”.
After onclick/selecting the text, it could expand itself and showing the whole content.
If users decide to click/select another cell/value, the ellipsis could be applied again.
Show text-overflow on cell hover:
.table.table-ellipsis tbody td {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap
}
.table.table-ellipsis tbody td:hover {
text-overflow: clip;
white-space: normal;
word-break: break-all;
}
Thanks! ^_^
thanks bro manyy hihi
Gracias me ayudo mucho, saludos desde Ecuador.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This saved me a lot of work. Thanks!