@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
97 lines • 3.81 kB
TypeScript
import { ComponentWrapper, ElementWrapper } from '@awsui/test-utils-core/dom';
import CollectionPreferencesWrapper from '../collection-preferences';
import PaginationWrapper from '../pagination';
import PropertyFilterWrapper from '../property-filter';
import TextFilterWrapper from '../text-filter';
export default class TableWrapper extends ComponentWrapper {
static rootSelector: string;
private containerWrapper;
private findNativeTable;
private findActiveTHead;
findHeaderSlot(): ElementWrapper | null;
/**
* Alias for findHeaderSlot method for compatibility with previous versions
* @deprecated
*/
findHeaderRegion(): ElementWrapper | null;
findFooterSlot(): ElementWrapper | null;
findColumnHeaders(): Array<ElementWrapper>;
/**
* Returns the element the user clicks when resizing a column.
*
* @param columnIndex 1-based index of the column containing the resizer.
*/
findColumnResizer(columnIndex: number): ElementWrapper | null;
/**
* Returns a table cell based on given row and column indices.
*
* @param rowIndex 1-based index of the row of the cell to select.
* @param columnIndex 1-based index of the column of the cell to select.
*/
findBodyCell(rowIndex: number, columnIndex: number): ElementWrapper | null;
findRows(): Array<ElementWrapper>;
findSelectedRows(): Array<ElementWrapper>;
/**
* Alias for findEmptySlot method for compatibility with previous versions
* @deprecated
*/
findEmptyRegion(): ElementWrapper | null;
findEmptySlot(): ElementWrapper | null;
findLoadingText(): ElementWrapper | null;
findColumnSortingArea(colIndex: number): ElementWrapper | null;
/**
* Returns the column that is used for ascending sorting.
*/
findAscSortedColumn(): ElementWrapper | null;
/**
* Returns the column that is used for descending sorting.
*/
findDescSortedColumn(): ElementWrapper | null;
/**
* Returns a row selection area for a given index.
*
* @param rowIndex 1-based index of the row selection area to return.
*/
findRowSelectionArea(rowIndex: number): ElementWrapper | null;
findSelectAllTrigger(): ElementWrapper | null;
findTextFilter(): TextFilterWrapper | null;
findPropertyFilter(): PropertyFilterWrapper | null;
findFilterSlot(): ElementWrapper | null;
findCollectionPreferences(): CollectionPreferencesWrapper | null;
findPagination(): PaginationWrapper | null;
/**
* Returns the button that activates inline editing for a table cell based on given row and column indices.
*
* @param rowIndex 1-based index of the row of the cell to select.
* @param columnIndex 1-based index of the column of the cell to select.
*/
findEditCellButton(rowIndex: number, columnIndex: number): ElementWrapper | null;
findEditingCell(): ElementWrapper | null;
private _findEditingCellControls;
findEditingCellSaveButton(): ElementWrapper | null;
findEditingCellCancelButton(): ElementWrapper | null;
/**
* Returns the expandable row toggle button.
*
* @param rowIndex 1-based index of the row.
*/
findExpandToggle(rowIndex: number): ElementWrapper | null;
/**
* Returns `true` if the row expand toggle is present and expanded. Returns `false` otherwise.
*
* @param rowIndex 1-based index of the row.
*/
isRowToggled(rowIndex: number): boolean;
/**
* Returns items loader of the root table level.
*/
findRootItemsLoader(): null | ElementWrapper;
/**
* Returns items loader of the specific item (matched by item's track ID).
*
* @param itemId the (expandable) item ID provided with `trackBy` property.
*
* Note: when used with collection-hooks the `trackBy` is set automatically from `expandableRows.getId`.
*/
findItemsLoaderByItemId(itemId: string): null | ElementWrapper;
}