jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Tooltip, Notification, Popover jqxPopover: Assign selector later

This topic contains 2 replies, has 2 voices, and was last updated by  badera 9 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqxPopover: Assign selector later #79522

    badera
    Participant

    Dear all

    I use jqxPopover and like to setup the popover itself, but without selector, since the html element, which will have the popover, will be available later so I do not have the jQuery selector at this time.
    But if do not assign the selector property in the jqxPopover settings, I get the JavaScript error [jqxPopover: Invalid Popover toggler: “null”].
    However, it is no problem to assign later the selector, it will work.

    You can reproduce the problem, on https://www.jseditor.io/?key=jqwidgets-popover-selector and comment out ‘selector: $(“#button”)’.

    Is it not allowed to let the selector unassigned?

    Best regards,
    – badera

    jqxPopover: Assign selector later #79541

    Peter Stoev
    Keymaster

    Hi badera,

    The property should be set during the widget’s initialization.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxPopover: Assign selector later #79561

    badera
    Participant

    Dear Peter

    Is it possible, that you will implement the possibility to let the selector “blank” at initialization in a future release of jqWidgets? – I think that the use case I described above, does make sense.
    – badera

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

You must be logged in to reply to this topic.