This topic contains 3 replies, has 2 voices, and was last updated by  kinders 8 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Why is this not working? #84182

    kinders
    Participant
      $(document).ready(function () {  
        var btn = $("<div>").text("test button").appendTo("body").jqxButton();
        var content = $("<div>").appendTo("body");
        content.jqxPopover({
            width: 200,
            height: 50,
            showArrow: true,
            showCloseButton: true,
            initContent: function()
            {
                content.text("This is not working");
            },
            selector: btn,
            title: 'Title'
        });
        content.on('open', function(){
            console.log("this is not triggered");
        });
        content.on('close', function(){
            console.log("this is not triggered");
        });
    });
    • This topic was modified 8 years, 1 month ago by  kinders.
    Why is this not working? #84183

    kinders
    Participant

    The init content callback and open/close event is not working as I supposed to.

    Why is this not working? #84189

    ivailo
    Participant

    Hi kinders,

    Please select by id the popover and it’s content element. Then the behavior will be as is expected.
    Here is a demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Why is this not working? #84221

    kinders
    Participant

    OK. I did’t know this. Thanks for answering.

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

You must be logged in to reply to this topic.