You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create an app with ink.js and I need to truncate a string, but without ….
I looked through the code of the <Text> component, but it just passes the wrap property on to an underlying <ink-text> component which AFAIK puts altering the way truncation works out of my reach.
I tried limiting the size of the box but leaving wrap set to its default value "wrap", but that resulted in the text wrapping out of its container and overwriting components that came after it – not exactly ideal.
Is there some way to truncate text without adding the … character?
The text was updated successfully, but these errors were encountered:
I'm trying to create an app with ink.js and I need to truncate a string, but without
…
.I looked through the code of the
<Text>
component, but it just passes thewrap
property on to an underlying<ink-text>
component which AFAIK puts altering the way truncation works out of my reach.I tried limiting the size of the box but leaving
wrap
set to its default value"wrap"
, but that resulted in the text wrapping out of its container and overwriting components that came after it – not exactly ideal.Is there some way to truncate text without adding the
…
character?The text was updated successfully, but these errors were encountered: