jQWidgets Forums

jQuery UI Widgets Forums Plugins AngularJS Understanding lifecycle and when is the jqxInstance injected

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • lqbweb
    Participant

    Hello,

    I am trying to wrap a jqxNumberInput in a custom angular directive. But I am struggling to understand two things from your design (since I dont have the sources):

    1) Why the jqxInstance is not injected right after linking the jqxNumberInput directive
    2) Why am I seeing DOM modifications of the component, after the linking of the jqxNumberInput directive. I mean, the <input> is not in the DOM after having linked the jqxNumberInput directive, but sometime after the scope is applied. Is this the right approach? are you expecting to change this in the near future? I guess the breaks a bit the components pattern of Angular 2, right?

    Thanks for your great work.


    Peter Stoev
    Keymaster

    Hi lqbweb,

    This is Angular 1x intergration, not Angular 2x so for Angular 2x we will have another integration plugin and it will use Typescript of course. It would not be an extension of the existing one. There is jqxInstance after the widget is created. Each widget builds and adds DOM elements. Input tag will become a DIV tag and we do this because you can’t have spin buttons or additional elements added to Input tag.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.