jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • Drakonos
    Participant

    Hello,

    your solution and the standard squared button from animate cc let me open the popover. a custom button brings me the error. maybe i can customize the layout from the starndard button from animate, so thx for your help.


    Drakonos
    Participant

    sorry, for double post but, i cant edit.

    i copied your solution into my script and get the invalid popover toggler error again.

    i think it is not possible to use this widget with the animate cc. The listbox is funktional but the popover is strange to use.


    Drakonos
    Participant

    Hello Martin,

    i tried your solution, and now i get a
    Uncaught Error: Invalid Selector – #btnTodesfallHinweisEins! Please, check whether the used ID or CSS Class name is correct.
    (i changed the id from the custom button)


    Drakonos
    Participant

    Hello,

    first, i create a div like

    window.Popover_Todesfall_Hinweis_1_Element = document.createElement(‘div’); //create a Div
    Popover_Todesfall_Hinweis_1_Element.id = ‘jqxPopoverTodesfallHinweis1’; //set its ID
    canvas.parentNode.appendChild(Popover_Todesfall_Hinweis_1_Element);

    second, i created a custom button with the id “btnTodesfallHinweisEins”
    this button is in a movieclip, because i can not create a div in a movieclip.
    Only over the mvc the div is useable.

    and third, added a eventlistener for the custom button

    exportRoot.mvcTodesfallProgramm.btnTodesfallHinweisEins.addEventListener(“click”, onClickHinweis.bind(this));

    function onClickHinweis(e) {

    $(“#jqxPopoverTodesfallHinweis1”).jqxPopover({
    offset: {
    left: -50,
    top: 0
    },
    theme: ‘mobile’,
    arrowOffsetValue: 50,
    title: “Test”,
    showCloseButton: true,
    selector: e.currentTarget.name,
    });
    }

    hope you can help me.

    greetz

    Michel

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