Forum /
Sencha Touch 1.x Forums /
Sencha Touch 1.x: Q&A /
Unanswered: Expandable text
Unanswered: Expandable text
Is there a way we can make text to expand/collapse, the way we do using javascript?
Sencha - Senior Forum Manager
Have a <div> with a set width and use overflow and such to get elipsis. Then on tap make the width of the <div> to be auto and back to a set width for toggling.
<div style= "white-space: nowrap; height: 50px; width: 100%; overflow: hidden; text-overflow: ellipsis;">
I did't quiet understand the second part "Then on tap make the width of the <div> to be auto and back to a set width for toggling. "
How do I make the more and less links so that they expand and collapse the text?
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us