[MGNLUI-5167] DOC: Example needed to build alerts using AlertBuilder Created: 23/Apr/19 Updated: 28/Jul/21 Resolved: 28/Jul/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Martin Drápela | Assignee: | Martin Drápela |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoR: |
Empty
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
As spotted by mmichel, our pages about
use deprecated `UiContext` APIs to generate dialogs.
Task
|
| Comments |
| Comment by Adam Siska [ 27/Mar/20 ] |
|
There is JavaDoc within introducing commit by mgeljic: with this example: AlertBuilder.confirmDialog("Say hi?") .withLevel(Notification.Type.HUMANIZED_MESSAGE) .withBody("Do you want to say hello?") .withOkButtonCaption("You bet") .withDeclineButtonCaption("No way") .withConfirmationHandler(() -> sayHello(name)) .buildAndOpen(); |
| Comment by Adam Siska [ 27/Mar/20 ] |
|
Other source of examples here: |