Lumpat menyang isi utama Lumpat menyang pandhu arah docs
Check
in English

Pemotongan teks

Cut strings dawa teks karo elipsis.

Kanggo isi luwih dawa, sampeyan bisa nambah .text-truncatekelas kanggo truncate teks karo elipsis. Mbutuhake display: inline-blockutawa display: block.

Teks iki cukup dawa, lan bakal dipotong sawise ditampilake.
Teks iki cukup dawa, lan bakal dipotong sawise ditampilake.
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>