On 11/30/16, 2:14 PM, "[email protected] on behalf of Carlos Rovira" <[email protected] on behalf of [email protected]> wrote:
>> I'm trying to understand your scenario. Can you post some simple MXML >>of >> what you want to do? MXML is not HTML and I'm not sure it should be. >> Changing MXML might impact IDEs which I don't think we should do. >> >> >I think I don't want to change MXML, I want just get one type of output >that we don't support yet. >I want a MXML/AS standard component that could output just text or >text+htmltags > >Examples are whatever combination of html tags and text > >outputs: > ><div>sometext</div>. (more example changing div by li, span, section, >td,...and so on...that's all allowed by html without the need of an >intermediate span tag, and I think is a must to support it. > >In MXML that could be: > ><js:Container><js:Text text="sometext/></jsContainer> > >Right now the only way to get text is > ><js:Container><js:Label text="sometext/></jsContainer> > >ant that throws: <div><span>sometext</span></div> (with lots of styles in >div and span) > >Maybe a bead could do the job in combination with whatever flexjs >component, and that bead will insert text between the host component, we >only need the framework to support it. If the component LI was based on UIBase instead of Container and had a text/html property, just like Label, then you would write: <js:LI>some text</js:LI> Or <js:LI><b>some bold text</b></js:LI> And the LI would have its text or HTML property set, just Like Label, and it would thus result in the following DOM. <li>some text</li> Or <li><b>some bold text</b></li> Isn't that what you want? -Alex
