Popup
This component is used to display a popup, you can add buttons to it and specify js functions for each button. The content of the popup can be filled with the result of an action, or defined in the view.It can be declared using 2 helpers:
- Html.Awe().PopupActionLink - will generate a link which opens the popup
- Url.Awe().PopupAction - will generate the js function call for opening the popup
@Html.Awe().PopupActionLink().Name("p1")
.LinkText("Open Popup")
.Content("Hi, this is a popup")
.Title("awesome title")
<button onclick="@Url.Awe().PopupAction().Name("p2").Url(Url.Action("Meals"))">Show Meals Popup</button>
properties:
Name - when using 2 popups with same name opening one will close the other Content - the string content of the popup Url - the url to the action that returns the content Button - add a button to the popup RemoveOnClose - whether to remove the content of the popup and the popup itself after close, by default is true LinkText Position Fullscreen - if true the popup will fill the browser window Height Width Title
