• /
  • Log in
  • Start now

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

Example 1

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: Event
) => undefined
styleobject

Inline style for custom styling.

Should be used only for positioning and spacing purposes.

testIdstring

Adds a data-test-id.

Used to target the component in unit and e2e testing.

toshape|string

Location object or url string to link to.

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

Methods

EntityTitleTableRowCell.render

function () => undefined
Edit this pageCreate an issue
Copyright © 2021 New Relic Inc.

This site uses cookies 🍪

We use cookies and other similar technologies ("Cookies") on our websites and services to enhance your experience and to provide you with relevant content. By using our websites and services you are agreeing to the use of cookies. You can read more here. If you consent to our cookies, please click Yes.