• /
  • Log in
  • Start now

UserTableRowCell

Renders a row table cell showing a particular user. This cell takes the user object as its children, which is in turn compatible with the NerdGraph user object (needing, at the very least, the name and gravatar fields).

Usage

import { UserTableRowCell } 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 table 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

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

shape

namerequiredstring
gravatarrequiredstring

Methods

UserTableRowCell.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.