Gideon So Posted August 22, 2016 Share Posted August 22, 2016 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 More sharing options...
tpr Posted August 22, 2016 Share Posted August 22, 2016 Try adding pw-modal to your links. If it doesn't work, you will need to get jQuery modal first from the core modules. Link to comment Share on other sites More sharing options...
Gideon So Posted August 22, 2016 Author Share Posted August 22, 2016 Hi, Tried. Doesn't work. How to get jQuery modal?? Gideon Link to comment Share on other sites More sharing options...
tpr Posted August 22, 2016 Share Posted August 22, 2016 $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" 3 Link to comment Share on other sites More sharing options...
Gideon So Posted August 22, 2016 Author Share Posted August 22, 2016 Hi, Thanks. I will take a look and try. Gideon Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now