Jump to content

Modal windows in the backend


Gideon So
 Share

Recommended Posts

Hi,

I am building a module which lists some pages in a table with edit add new and delete button. I would like to have a modal window when the edit or add new button is clicked. Do I need to implement a third party js plugins or there is some built-in function in ProcessWire??

Gideon

Link to comment
Share on other sites

$this->modules->get('JqueryUI')->use('modal');

After that you should be able to see the modal if your link has the "pw-modal" class.

If you need to add buttons to the modal, follow the instructions in "\wire\modules\Jquery\JqueryUI\modal.js"

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...