jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • sheng63
    Participant

    Hello, i hope can help

    The jqx-window id is “theWin”, i put 2 button: for fullscreen and for maximize the jqx-window (btnWindowFull, and btnWindowMax), and add a custom class with custom icons

    So, in some place of your code, after DOM ready – of course:

    $("<div id='btnWindowFull' style='float: left; width:16px; height:16px; margin-right:5px;' class=\"jqx-icon-full\"></div>").insertBefore("#theWin.jqx-window-close-button");
        $("<div id='btnWindowMax' style='float: left; width:16px; height:16px; margin-right:5px;' class=\"jqx-icon-expand\"></div>").insertBefore("#theWin.jqx-window-close-button");

    and when I open the jqx-window

    $("#theBtn").on('click', function () {
     $("#theWin.jqx-window-close-button-background").css("width", "58px");
            setTimeout(function () { $("#theWin.jqx-window-close-button-background").css("width", "58px"); }, 1000);
            $("#theWin.jqx-window-close-button").css({ float: "left", width: "16px", height: "16px" });
    });

    By the way: jQWidgets v3.5.0 (2014-Sep-15)

    Regards

Viewing 1 post (of 1 total)