Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

override default jquery impromptu width

The following statement works fine with the exception that the width of the modal message is 400px, the default, instead of the desired 800px.

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

The default of 400px is fine except for this one instance. The question is how do I best override the default for the one instance?

like image 549
Terry Avatar asked Dec 12 '25 12:12

Terry


1 Answers

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

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

So I set up an alternate:

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

Then the call to Impromptu for a wide instance is:

$.prompt(sFirstText,{prefix:'jqiwide'});
like image 198
Terry Avatar answered Dec 14 '25 00:12

Terry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!