-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Enum: MessageBox.Icon.NONE
being undefined
causes Error
#4273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @boghyon , |
Hello @boghyon , Why would you assume that sap.m.MessageBox.Icon is a Best regards, |
While calling If they're not supposed to be real enum in contrast to the documentation, and if those types are not registered via |
Hello, Key-value pairs of
Best regards, |
@dimovpetar I agree to your point of view. Several UI5 libraries (not OpenUI5) contain enums that are only used in JavaScript APIs, but not in managed settings. I would find it very limiting for the API design, if all those enums would have to stick to the UI5 rules for managed settings. But I also get @boghyon's point. It is currently difficult to understand why not every enum can be used in managed settings, either because it doesn't follow the conventions (key === value) or because it isn't registered. Maybe we should at least mention in the documentation whether an enum can be used for a managed setting (in the sense that it is registered as DataType). |
This is a sub-issue of #4201. Due to the
MessageBox.Icon.NONE
beingundefined
, which is not allowed according to the documented guideline shown in the parent issue, callingsap/ui/base/DataType.getType("sap.m.MessageBox.Icon")
currently causes:openui5/src/sap.m/src/sap/m/MessageBox.js
Lines 169 to 181 in 6717fc9
The text was updated successfully, but these errors were encountered: