carbon-custom-elements
Version:
A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.
62 lines (53 loc) • 1.55 kB
TypeScript
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Component } from 'react';
interface ComponentProps {
/**
* `true` if this table row should be disabled.
*/
disabled?: boolean;
/**
* `true` if this table row is placed at an even position in parent `<bx-table-body>`.
* `<bx-table-body>` sets this property, _only_ in zebra stripe mode.
* @private
*/
even?: boolean;
/**
* `true` if this table row is placed at an odd position in parent `<bx-table-body>`.
* `<bx-table-body>` sets this property, _only_ in zebra stripe mode.
* @private
*/
odd?: boolean;
/**
* `true` if this table row should be selected.
*/
selected?: boolean;
/**
* The `aria-label` attribute for the `<label>` for selection.
*/
selectionLabel?: string;
/**
* The `name` attribute for the `<input>` for selection.
* If present, this table row will be a selectable one.
*/
selectionName?: string;
/**
* The `value` attribute for the `<input>` for selection.
*/
selectionValue?: string;
}
/**
* Data table row.
* @element bx-table-row
* @fires bx-table-row-change-selection
* The custom event fired before this row is selected/unselected upon a user gesture.
* Cancellation of this event stops the user-initiated change in selection.
*/
declare class BXTableRow extends Component<ComponentProps> {}
export default BXTableRow;