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

MagDev175 picture MagDev175  路  19Comments

Zahar661 picture Zahar661  路  19Comments

brunobola picture brunobola  路  18Comments

cryptic-ai picture cryptic-ai  路  48Comments

volkanceylan picture volkanceylan  路  35Comments