Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Alex Harui
On 2/27/17, 10:45 PM, "Justin Mclean" wrote: >Hi, > >>> I also tried MultilineLabel as far as I can see ignores any new lines >>>in >>> it content. Is this a bug? >> >> Not sure. How do you specify a new line in a regular HTML Span, and did >> you use the same thing? > > >With spans you don't

Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Justin Mclean
Hi, >> I also tried MultilineLabel as far as I can see ignores any new lines in >> it content. Is this a bug? > > Not sure. How do you specify a new line in a regular HTML Span, and did > you use the same thing? With spans you don't as they are inline elements. In HTMl you would normal use a

Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Alex Harui
On 2/27/17, 8:45 PM, "Justin Mclean" wrote: >Hi, > >What is the FlexJS component you should use for large blocks of text? > >I first try TextArea and it does however support newlines in the content, >but the text is editable. Should support be added for a readonly >property? Only in a PAYG wa

Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Justin Mclean
Hi, So one, probably ill conceived and hacky, work-around would be to do this: ” /> Anyone think of anything better? Thanks, Justin

Re: [FlexJS] TextArea

2016-11-08 Thread Harbs
Both editable and non-editable text areas are really common use cases, and it’s a really simple attribute. I’d like to make it as simple as possible to use in MXML without having to specify beads. Since the RichTextArea is not a simple wrapper on anyway, I thought that adding an editable prope

Re: [FlexJS] TextArea

2016-11-08 Thread Harbs
IPlainTextModel should work. I’m in the middle of adding a RichTextArea component which wraps a div. More on that in my next response. On Nov 8, 2016, at 6:05 PM, Alex Harui wrote: > On 11/8/16, 2:39 AM, "Harbs" wrote: > >> It also feels like “editable" should be a first class citizen… >> >

Re: [FlexJS] TextArea

2016-11-08 Thread Alex Harui
On 11/8/16, 8:05 AM, "Alex Harui" wrote: >On 11/8/16, 2:39 AM, "Harbs" wrote: > >>It also feels like “editable" should be a first class citizen… Forgot to comment on this: Wouldn't folks typically change the visuals of a non-editable control as well? If so, "editable" or "readOnly" should b

Re: [FlexJS] TextArea

2016-11-08 Thread Alex Harui
On 11/8/16, 2:39 AM, "Harbs" wrote: >It also feels like “editable" should be a first class citizen… > >On Nov 8, 2016, at 12:37 PM, Harbs wrote: > >> On a similar vein: >> >> ITextModel and TextModel seems to be flawed in the fact that it assumes >>that all text can be html text. This is clearl

Re: [FlexJS] TextArea

2016-11-08 Thread Harbs
It also feels like “editable" should be a first class citizen… On Nov 8, 2016, at 12:37 PM, Harbs wrote: > On a similar vein: > > ITextModel and TextModel seems to be flawed in the fact that it assumes that > all text can be html text. This is clearly not true for input and textarea > HTML el

Re: [FlexJS] TextArea

2016-11-08 Thread Harbs
On a similar vein: ITextModel and TextModel seems to be flawed in the fact that it assumes that all text can be html text. This is clearly not true for input and textarea HTML elements. On Nov 8, 2016, at 12:03 PM, Harbs wrote: > I don’t think TextArea as it stands should have an html propert