I'm going to try that now, but I think an HTML element does not has
royale_wrapper right?
So if I have for example a "div", "aside" or "label" as positioner how can
I assign royale_wrapper?

El jue., 7 mar. 2019 a las 1:08, Harbs (<[email protected]>) escribió:

> The positioner needs the royale_wrapper set.
>
> > On Mar 6, 2019, at 6:19 PM, Carlos Rovira <[email protected]>
> wrote:
> >
> > This could be solved in this way:
> >
> > private var _div:Group = null;
> >
> > public function get div():Group
> >        {
> > if(_div == null)
> > _div = new Group();
> > return _div;
> > }
> >
> > COMPILE::JS
> >        override public function get positioner():WrappedHTMLElement
> >        {
> > return div.element;
> >        }
> >
> > and
> >
> > /**
> > * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
> > * @royaleignorecoercion HTMLDivElement
> > * @royaleignorecoercion HTMLInputElement
> > * @royaleignorecoercion HTMLLabelElement
> > * @royaleignorecoercion Text
> > */
> > COMPILE::JS
> > override protected function createElement():WrappedHTMLElement
> > {
> > input = addElementToWrapper(this,'input') as HTMLInputElement;
> > input.setAttribute('type', 'text');
> > goog.events.listen(input, 'input', textChangeHandler);
> > div.element.appendChild(input);
> > return element;
> > }
> >
> > but seems more complex right?
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to