@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
61 lines • 1.92 kB
TypeScript
import { ComponentWrapper, ElementWrapper } from '@awsui/test-utils-core/dom';
declare class TreeViewItemWrapper extends ComponentWrapper {
/**
* Finds the content slot of the tree view item.
*/
findContent(): ElementWrapper | null;
/**
* Finds the icon slot of the tree view item.
*/
findIcon(): ElementWrapper | null;
/**
* Finds the secondary content slot of the tree view item.
*/
findSecondaryContent(): ElementWrapper | null;
/**
* Finds the actions slot of the tree view item.
*/
findActions(): ElementWrapper | null;
/**
* Finds the expand toggle of the tree view item.
*/
findItemToggle(): ElementWrapper | null;
/**
* Finds all visible child items of the tree view item.
* @param options
* * expanded (optional, boolean) - Use it to find all visible expanded or collapsed child items.
*/
findChildItems(options?: {
expanded?: boolean;
}): Array<TreeViewItemWrapper>;
/**
* Finds a visible child item by its ID.
* @param id of the item to find
* @param options
* * expanded (optional, boolean) - Use it to find the visible expanded or collapsed child item.
*/
findChildItemById(id: string, options?: {
expanded?: boolean;
}): TreeViewItemWrapper | null;
}
export default class TreeViewWrapper extends ComponentWrapper {
static rootSelector: string;
/**
* Finds all visible tree view items.
* @param options
* * expanded (optional, boolean) - Use it to find all visible expanded or collapsed items.
*/
findItems(options?: {
expanded?: boolean;
}): Array<TreeViewItemWrapper>;
/**
* Finds a visible tree view item by its ID.
* @param id of the item to find
* @param options
* * expanded (optiona, boolean) - Use it to find the visible expanded or collapsed item.
*/
findItemById(id: string, options?: {
expanded?: boolean;
}): TreeViewItemWrapper | null;
}
export {};