You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
Adds mdc-list-item--selected class to menu items when rememberSelection is set to true.
Auto-focuses on the last selected item when opened and rememberSelection is set to true.
Change as per material-components-web v0.30.0
reference: material-components/material-components-web#2084
Adds `mdc-list-item--selected` class to menu items when `rememberSelection` is set to `true`.
#### New Public methods
- [x] Add `setRememberSelection(rememberSelection: boolean)`
- [x] Add `getSelectedIndex(): number`
- [x] Add `setSelectedIndex(index): void`
- [x] Add `setMaxHeight(height: number): void`
Closes#618
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Change as per material-components-web v0.30.0
reference: material-components/material-components-web#2084
Adds
mdc-list-item--selected
class to menu items whenrememberSelection
is set totrue
.Auto-focuses on the last selected item when opened and
rememberSelection
is set totrue
.Foundation APIs
setAttrForOptionAtIndex(index, attr, value) {}
rmAttrForOptionAtIndex: (index, attr) => {}
addClassForOptionAtIndex: (index, className) => {}
rmClassForOptionAtIndex: (index, className) => {}
Foundation methods
setRememberSelection(rememberSelection: boolean)
getSelectedIndex(): number
setSelectedIndex(index): void
The text was updated successfully, but these errors were encountered: