You can apply custom classes to the dialog using the classes configuration option. That will let you easily target it with custom css to modify the dialog as desired. For example:
Applies the class my-custom-dialog to the main dialog div. You can use that combined with the classes jQuery applies to the various elements to modify the look.
Of course you won’t be able to drag left and right any more but only up and down (which seems nonsense to me anyway as the standard dialogue does not adjust if you change the window size after its loaded and the dialogue is cut off).
Not sure I’m following but surely you just put the header in the html
e.g.
<div id="dialog-confirm" >
<h3>Header here</h3>
<input type="checkbox" id="vehicle1" name="vehicle1" value="Bike">
<label for="vehicle1"> I have a bike</label><br>
<input type="checkbox" id="vehicle2" name="vehicle2" value="Car">
<label for="vehicle2"> I have a car</label><br>
<input type="checkbox" id="vehicle3" name="vehicle3" value="Boat">
<label for="vehicle3"> I have a boat</label><br><br>
</div>
Again I’m not sure what you are asking but you can remove the title. It doesn’t have anything to do with the classes added?
it gives you instructions on how to hide the close button.
Hiding the close button
In some cases, you may want to hide the close button, for instance, if you have a close button in the button pane. The best way to accomplish this is via CSS. As an example, you can define a simple rule, such as:
Sorry I don’t really know what you mean by on the page? If you meant you don’t want the button in the gray part then you can use the custom classes you added to remove the backgrounds and borders as required.
One question - if I have a dialog showing on full screen (100% width) , I know you mentioned 80% in your example, is there a way I can bock the scrollbar of that page and show scrollbar only for the dialog if the content of the dialog needs scrolling. Basically, I don’t want to have the user scroll up and see the other back side of the dialog (other parts of the page even though that section is inactive).
If you mean you don’t want the body content behind the modal dialogue to scroll you could hide the overflow on the body but then you’d have to change the modal dialogue to be position:fixed.
If yo meant you want the content in the dialogue to scroll then you’d just need to add overflow:auto to the dialogue and se a height (or a max-height).
Are you sure that the dialogue is the right component for you as you seem to be fighting it rather than using it as it was designed?