PDA

View Full Version : Bullet point list in TextArea/TextField



theSenchaNoob
10 Dec 2013, 5:04 PM
How would you put a bullet point list into a TextArea/TextField component? The look I'm trying to achieve for the list is exactly like an unordered list in HTML.

Kevin Jackson
12 Dec 2013, 10:03 AM
Are you trying to populate a text area with bulleted text or give the end user the ability to create a bulleted list.

An htmlEditor could be set to have only that option if desired.

Here's an example
https://fiddle.sencha.com/#fiddle/24l

theSenchaNoob
12 Dec 2013, 10:28 AM
Its to populate a textareafield with a bullet list.

Kevin Jackson
12 Dec 2013, 10:45 AM
I think we are talking past each other. Will it be static and not subject to change by the end user?

theSenchaNoob
12 Dec 2013, 10:48 AM
Yep. Its going to be a static list of information (think of something like a Terms and Conditions agreement). Non-editable by the user.

Kevin Jackson
12 Dec 2013, 2:31 PM
Sorry my interweb was down for a bit

https://fiddle.sencha.com/#fiddle/24p

I think you want a DisplayField not a Text Area

theSenchaNoob
12 Dec 2013, 2:32 PM
exactly what i was looking for. Thanks.