Live demo — this example is server-driven; run the showcase locally for the interactive version.

Truncate

Use Truncate straight from a Qute template — parameters and slots instead of Java builders. This reference is generated from the runtime template sources: each template documents its parameters and slots in the header comment shown beneath its include line.

Templates

truncate

{#include components/data-display/truncate /}
Truncate — PatternFly v6 
 Required: content 
 Optional: id, position (end | start | middle — default end),
              trailingNumChars (for middle truncation, default 7) 
 Model mode: pass truncate=<org.sitenetsoft.quarkus.pha.model.Truncate> — adds maxChars (Alpine char budget)
   and link (truncating anchor) flavours; middle-mode split happens in Java.