Holo i ka ʻike nui Holo i ka hoʻokele docs
Check
in English

ʻoki kikokikona

E ʻoki i nā kaula loloa me ka ellipsis.

No ka ʻike lōʻihi, hiki iā ʻoe ke hoʻohui i kahi .text-truncatepapa e ʻoki i ka kikokikona me kahi ellipsis. Pono display: inline-blocka display: block.

He lōʻihi loa kēia kikokikona, a e ʻoki ʻia ke hōʻike ʻia.
He lōʻihi loa kēia kikokikona, a e ʻoki ʻia ke hōʻike ʻia.
html
<!-- Block level -->
<div class="row">
  <div class="col-2 text-truncate">
    This text is quite long, and will be truncated once displayed.
  </div>
</div>

<!-- Inline level -->
<span class="d-inline-block text-truncate" style="max-width: 150px;">
  This text is quite long, and will be truncated once displayed.
</span>