Wrapper for cells composing a single row.
Usage
import { TableRow } from 'nr1'
Props
shape[] | Defines a set of actions that will appear when the user hovers the row. Actions have a mandatory text and onClick callbacks (that will be called with the item and index of the row they belong to), and they also accept a disabled property. shape
boolean
REQUIREDstringUse it to describe the row's action.
REQUIREDfunctionCallback fired any time the user clicks on the action.function (
stringAdds adata-test-id attribute. Use it to target the component in unit and E2E tests.For a test id to be valid, prefix it with your nerdpack id, followed up by a dot.For example, my-nerdpack.some-element .
Note: You might not see data-test-id attributes as they are removed from the DOM, to debug them pass a e2e-test query parameter to the URL.
enumType of action for each of the items in the actions dropdown.It's not mandatory, its default isTableRow.ACTION_TYPE.NORMAL .
|
REQUIREDnode | List of row cells, in the shape of |
function | Callback fired any time the user clicks on the table row. function ( |