jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window jqxWindow Change Opacity

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxWindow Change Opacity #78405

    jqwidgetsdev
    Participant

    Hello.

    I have added a slider inside my window. I am trying to change the opacity of the window by changing the slider value.

                    $('#jqxSlider').on('change', function (event) {
                        x = $('#jqxSlider').jqxSlider('getValue')/100;
                        console.log(x);
    
                        $('#jqxWindow').jqxWindow({ modalOpacity: x }); 
                    });

    From the documentation I see there is a property called modalOpacity, when I change the slider, I see a change in opacity in the area outside the window.

    My question, is there a way to change the opacity of the window itself?
    If not, may I please request this?

    Thank you.

    jqxWindow Change Opacity #78418

    ivailo
    Participant

    Hi jqwidgetsdev,

    There is no built in method that controls the opacity but you can easily change it via CSS.
    Here is the demo.

    Best Regards,
    Ivailo Ivanov

    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.