Override default jquery improvisator width

The following statement works fine except that the width of the modal message is 400px, by default instead of the required 800px.

$.prompt(sFirstTest,{width:800});

By default, 400 pixels is fine except for one instance. The question is, what is the best way to override the default value for a single instance?

+3
source share
3 answers

The answer was right in front of me in the documentation all the time. Impromptu css has:

div jqi {
    width:400px;
    .....
}

So, I set up an alternative:

div jqiwide {
    width:800px;
    .....
}

Then a call for Impromptu for a wide instance:

$.prompt(sFirstText,{prefix:'jqiwide'});
+4
source

And be sure to duplicate ads impromptu.csswith a new prefix, as they are not prepared for an identifier and are not classified with a new prefix.

0
source
.customStyling div.jqi{
    width: 800px;
}

var dialogOptions = {
    buttons: [{...},{...}],
    classes: "customStyling"
};

$.prompt("msg", dialogOptions);
0
source

All Articles