Skip to content

TruncateTagHelper

StrutTower edited this page Nov 11, 2022 · 2 revisions

Simple tag helper that will truncate a string if it's longer than the supplies number of characters and add an ellipse.

Usage

<truncate string="teststring" characters="5"></truncate>

Attributes

Name Required Data Type Description
string Required String The string to display and truncate if necessary
characters Required Int The maximum number of character to display

Clone this wiki locally