• /
  • Log in

EntityTitleTableRowCell

Renders a row table cell showing the title of a particular entity. This cell takes the entity object as its children, which is in turn compatible with the NerdGraph entity object (needing, at the very least, the name and reporting fields). If alertable, you should also query for alertSeverity.

Usage

import { EntityTitleTableRowCell } from 'nr1'

Examples

Props

classNamestring

Appends class names to the component.

Should be used only for positioning and spacing purposes.

onClickfunction

Callback fired any time the user clicks on the cell.

function (
event: React.MouseEvent
)
styleobject

Inline style for custom styling.

Should be used only for positioning and spacing purposes.

testIdstring

Adds a data-test-id attribute.

Use it to target the component in unit and e2e tests.

toshape|string

Location object or url string to link to.

Linked TableRowCells are unstyled and will not show icons for external links. If the same styling as the Link component is what is desired, then use a Link instead as a child component within the cell.

shape

pathnamerequiredstring
searchstring
hashstring
valuerequiredshape

Entity object, that requires (at least), the name and reporting fields. This object matches with the user structure obtained from NerdGraph.

shape

namerequiredstring
alertSeveritystring
reportingrequiredboolean
Create issueEdit page
Copyright © 2021 New Relic Inc.