• /
  • Log in
  • Start now

FavoriteTableRowCell

Renders a row table cell showing the favorite status of a particular entity. The favorite status can be controlled through the checked property and the status changes can be listened through the onChange property.

Usage

import { FavoriteTableRowCell } from 'nr1'

Examples

Example 1

Props

checkedboolean

If true, indicates that the user has marked the entity as favorite.

classNamestring

Inline style for custom styling.

Should be used only for positioning and spacing purposes.

onChangefunction

Callback fired any time the favorite status changes. The new favorite status will be passed as second parameter.

function (
event: Event,
checked: bool
) => undefined
styleobject

Inline style for custom styling.

Should be used only for positioning and spacing purposes.

toshape|string

Location object or url string to link to.

shape

pathnamerequiredstring
searchstring
hashstring

Methods

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