@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
18 lines • 779 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const dom_1 = require("@awsui/test-utils-core/dom");
const styles_selectors_js_1 = require("../../../grid/styles.selectors.js");
class GridWrapper extends dom_1.ComponentWrapper {
/**
* Returns a column from the grid for a given index.
* @param columnIndex 1-based index of the column to return.
*/
findColumn(columnIndex) {
return this.find(`.${styles_selectors_js_1.default['grid-column']}:nth-child(${columnIndex}) > div`);
}
}
GridWrapper.rootSelector = styles_selectors_js_1.default.grid;
exports.default = GridWrapper;
//# sourceMappingURL=index.js.map