MCPcopy
hub / github.com/adobe/react-spectrum / getSections

Method getSections

packages/@react-aria/test-utils/src/menu.ts:444–451  ·  view source on GitHub ↗

* Returns the menu's sections if any.

()

Source from the content-addressed store, hash-verified

442 * Returns the menu's sections if any.
443 */
444 getSections(): HTMLElement[] {
445 let menu = this.getMenu();
446 if (menu) {
447 return within(menu).queryAllByRole('group');
448 } else {
449 return [];
450 }
451 }
452
453 /**
454 * Returns the menu's options if present. Can be filtered to a subsection of the menu if provided

Callers 5

ListBox.test.jsFile · 0.45
ComboBox.test.jsFile · 0.45
Menu.test.tsxFile · 0.45
Picker.test.jsFile · 0.45
ListBox.test.jsFile · 0.45

Calls 1

getMenuMethod · 0.95

Tested by

no test coverage detected