Tlolela go diteng tše kgolo Tlolela go docs navigation
Check
in English

Kgaotšo ya sengwalwa

Kgaola dithapo tše telele tša sengwalwa ka ellipsis.

Bakeng sa diteng tše telele, o ka oketša .text-truncatesehlopha go kgaola sengwalwa ka ellipsis. E nyaka display: inline-blockgoba display: block.

Sengwalwa se se telele kudu, gomme se tla kgaolwa ge se šetše se bontšhitšwe.
Sengwalwa se se telele kudu, gomme se tla kgaolwa ge se šetše se bontšhitšwe.
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>