I think it depends a bit on what access you need to the HTML snippet.  You
should be able to use innerHTML to inject any kind of HTML in a Div.  But
the ids in the HTML aren't accessible to AS code.

So, yes, you will need to wrap every HTML component with AS to access it
from AS.


On 8/12/17, 3:35 PM, "Harbs" <harbs.li...@gmail.com> wrote:

>The goal is to make it easy to fill in with simple HTML when there is no
>ready-to-go FLexJS components.
>I’d like to be able to use MXML to mark up some HTML and just have the
>CSS “work”.
>For example, I just tried using this
>L66FW9vZy0CyhuPhJFT1h8D57U0hp2IwHfr%2BMAhzo%3D&reserved=0> and it was
>much harder than I thought it would be.
>It looks like I’m going to need to create a component which wraps the
>functionality rather than just being able to use:
>               <js:Div width="100%" height="20">
>                       <js:Label className="cropswitch">
>                               <js:Input type="checkbox" 
> id="cropToggleButton"/>
>                               <js:Div className="cropslider round"/>
>                       </js:Label>
>               </js:Div>
>By “full wrapper” I meant a full set of wrappers.
>> On Aug 13, 2017, at 1:08 AM, Alex Harui <aha...@adobe.com.INVALID>
>> I don't understand your goal.  What is a "full wrapper"?   Many Basic
>> component already wrap HTMLElements.
>> I think there is another set that has the same name as the HTML
>> like Div, A, etc.
>> -Alex
>> On 8/12/17, 2:56 PM, "Harbs" <harbs.li...@gmail.com
>><mailto:harbs.li...@gmail.com>> wrote:
>>> Changing the namespace is not enough.
>>> The package path of Basic is org.apache.flex.html. Unless we change the
>>> package path of HTML to be different than Basic, classes cannot be
>>> the same…
>>>> On Aug 13, 2017, at 12:25 AM, Harbs <harbs.li...@gmail.com> wrote:
>>>> Namespace for HTML components.
>>>> The list of HTML components is not complete.
>>>> For example, Label does not exist in HTML. It only exists in Basic.
>>>> Label there inserts various formatting which is normally expected.
>>>> I’d like to fill out the HTML components to be full wrappers for
>>>> HTML elements but there will be collisions with the “Basic”
>>>> Currently the HTML components use library://ns.apache.org/flexjs/basic
>>>> <library://ns.apache.org/flexjs/basic
>>>><library://ns.apache.org/flexjs/basic>> as their namespace. I think it
>>>> makes sense to change that to library://ns.apache.org/flexjs/html
>>>> <library://ns.apache.org/flexjs/html
>>>><library://ns.apache.org/flexjs/html>> instead.
>>>> Any objections to making that change?
>>>> Harbs

Reply via email to