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 was archived by the owner on Jan 13, 2025. It is now read-only.
`addClassForElementIndex(index: Number, className: String) => void` | Adds the `className` class to the list item at `index`.
353
353
`removeClassForElementIndex(index: Number, className: String) => void` | Removes the `className` class to the list item at `index`.
354
354
`focusItemAtIndex(index: Number) => void` | Focuses the list item at the `index` value specified.
355
-
`setTabIndexForListItemChildren(index: Number, value: Number) => void` | Sets the `tabindex` attribute to `value` for each child `button`and `a` element in the list item at the `index` specified.
355
+
`setTabIndexForListItemChildren(index: Number, value: Number) => void` | Sets the `tabindex` attribute to `value` for each child button, anchor, radio button and checkbox element in the list item at the `index` specified.
356
356
`followHref(element: Element) => void` | If the given element has an href, follows the link.
`setSingleSelection(value: Boolean) => void` | Sets the list to be a selection list. Enables the `enter` and `space` keys for selecting/deselecting a list item.
365
365
`setSelectedIndex(index: Number) => void` | Toggles the `selected` state of the list item at index `index`.
366
366
`setUseActivated(useActivated: boolean) => void` | Sets the selection logic to apply/remove the `mdc-list-item--activated` class.
367
-
`handleFocusIn(evt: Event) => void` | Handles the changing of `tabindex` to `0` for all `button`and `a` elements when a list item receives focus.
368
-
`handleFocusOut(evt: Event) => void` | Handles the changing of `tabindex` to `-1` for all `button`and `a` elements when a list item loses focus.
367
+
`handleFocusIn(evt: Event) => void` | Handles the changing of `tabindex` to `0` for all button, anchor, radio, and checkbox elements when a list item receives focus.
368
+
`handleFocusOut(evt: Event) => void` | Handles the changing of `tabindex` to `-1` for all button, anchor, radio and checkbox elements when a list item loses focus.
369
369
`handleKeydown(evt: Event) => void` | Handles determining if a focus action should occur when a key event is triggered.
370
370
`handleClick(evt: Event) => void` | Handles toggling the selected/deselected state for a list item when clicked. This method is only used by the single selection list.
371
371
`focusNextElement(index: Number) => void` | Handles focusing the next element using the current `index`.
0 commit comments