Hello everyone,
I would like to wrap a dynamic string value to a new line when the string has more than 25 characters.
Is there a function on Wappler for this? I couldn’t find
Thanks!
Hello everyone,
I would like to wrap a dynamic string value to a new line when the string has more than 25 characters.
Is there a function on Wappler for this? I couldn’t find
Thanks!
You can use style rules to create the effect.
<style>
p {
max-width: 25ch;
word-wrap: break-word;
}
</style>
<div class="container">
<div class="row">
<div class="col">
<p>123456789012345678901234567890LoremipsumdolorsitametconsecteturadipisicingelitIpsaearecusandaeullamsitplaceatcommodirationesaepecorporiseumminimaconsequaturdolorepraesentiumquibusdamsolutacumdoloresdolor</p>
</div>
</div>
</div>
Thanks @ben!! Perfect!
Didn't know "ch" was a thing