Customizing a Javascript function

Asked

Viewed 40 times

1

In addition to Width, Height and Resizable, which other attributes can be inserted in a function?

inserir a descrição da imagem aqui

  • "which other attributes can be inserted in a function" - in a general function or .dialog specific?

  • In this . dialog in specific

  • This dialog is Bootstrap, jQuery or other?

  • The function is in Javascript and use in a div in html, I believe you do not have bootstrap

  • It may also be jQuery (https://jqueryui.com/dialog/). You can show the HTML of this dialog if you can’t tell from the files you are loading.

  • I used a function to lock the back button of the browser and use this. dialog in a div informing the user that the button is locked and how the login is done, is just a site for the college, nothing very serious. '<div id="dialog-confirm" valign="center" title="Ifhelp"> The browser back button is disabled. <br /> Your login is lowercase with name and last name together, e.g.: joaosilva </div>'

  • It’s hard to answer without knowing for sure what the dialog which you are using. If this is jQuery UI, here are the options: http://api.jqueryui.com/dialog/

  • 1

    That’s right, thank you very much!

Show 3 more comments

1 answer

0


Assuming you’re using the .dialog jQuery you can find the options in the documentation here (link in English).

Basically:

appendTo  
autoOpen  
buttons  
classes  
closeOnEscape  
closeText  
dialogClass  
draggable  
height  
hide  
maxHeight  
maxWidth  
minHeight  
minWidth  
modal  
position  
resizable  
show  
title  
width 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.