Toggles the expansion of the given item.
(item?: T)
| 235 | |
| 236 | /** Toggles the expansion of the given item. */ |
| 237 | toggleExpansion(item?: T) { |
| 238 | item ??= this.inputs.activeItem(); |
| 239 | if (!item || !this.isFocusable(item)) return; |
| 240 | |
| 241 | if (this.isExpandable(item)) { |
| 242 | this.expansionBehavior.toggle(item); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | /** Expands the given item. */ |
| 247 | expand(item: T) { |
no test coverage detected