-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat(ui5-date-picker): Replace openPicker
method with open
property
#8749
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve the PR from UA perspective.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change behaves as expected.
In BREAKING CHANGES section, you need to provide instructions how each of the previous APIs are replaced now with code examples - you can use all other merged PRs for reference |
…ty (#8749) Replaced `openPicker` methods with `open` property in `ui5-date-picker`, `ui5-daterange-picker` `ui5-datetime-picker` components. This change promotes a more declarative approach when working with popovers. BREAKING CHANGE: removed `openPicker()`, `closePicker()` and `isOpen()` methods. If you previously used `openPicker()` and `closePicker()`: ```ts const datePicker = document.getElementById("exampleID"); datePicker.openPicker(); datePicker.closePicker(); ``` Now use the `open` property respectively: ```ts const datePicker = document.getElementById("exampleID"); datePicker.open = true; datePicker.open = false; ``` Related to: #8461
Replaced
openPicker
methods withopen
property inui5-date-picker
andui5-datetime-picker
components. This change promotes a more declarative approach when working with popovers.BREAKING CHANGE: removed
openPicker()
,closePicker()
andisOpen()
methods.Before the ui5-date-picker popover can be opened and closed by calling
openPicker()
andclosePicker()
:Now the popover is opened and closed by updating the
open
property to true or false respectively:Related to: #8461