Serenity: Opening a new dialog from navigation

Created on 31 Dec 2016  路  1Comment  路  Source: serenity-is/Serenity

Hi,

Just wondering if anyone can offer advice on opening a new dialog from the nav menu.

For example, we have a quotes module, and currently, to add a new quote, you have to click on Quote->Quotes then the new quote button above the grid. I have added a nav item that says 'New Quote' however, I am stuck as to how to bring up the quote dialog for a user to create a new quote when they click this nav item.

I know they are opened via javascript, but don't know how to add an onclick event or something to a nav item.

Many Thanks,

Most helpful comment

use "javascript:new MyApp.MyModule.MyDialog().loadNewAndOpenDialog()" as url parameter

>All comments

use "javascript:new MyApp.MyModule.MyDialog().loadNewAndOpenDialog()" as url parameter

Was this page helpful?
0 / 5 - 0 ratings

Related issues

john20xdoe picture john20xdoe  路  3Comments

Akarsh03 picture Akarsh03  路  3Comments

StefanTheiner picture StefanTheiner  路  3Comments

ga5tan picture ga5tan  路  3Comments

ahsansolution picture ahsansolution  路  3Comments