on-internet
← Community

Why wrap a `Dialog` in a `FragmentDefinition`?

Stack Overflow ·

An UI5 dialog can be defined directly as a Dialog: <Dialog xmlns = "sap.m" id = "helloDialog" title = "Hello {/recipient/name}"> <beginButton> <Button text = "{i18n>dialogCloseButtonText}" press = ".onCloseDialog" /> </beginButton> </Dialog> Or can be wrapped by a FragmentDefinition: <core:FragmentDefinition xmlns:core = "sap.ui.core" xmlns = "sap.m"> <Dialog id = "helloDialog" title = "Hello {/recipient/name}"> <beginButton> <Button text = "{i18n>dialogCloseButtonText}" press = ".onCloseDialog" /> </beginButton> </Dialog> </core:FragmentDefinition> As far as I understand, a FragmentDefinition

Comments

Sign in or sign up to comment and upvote.

No comments yet.