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
If true
, indicates that the user has marked the entity as favorite.
Inline style for custom styling.
Should be used only for positioning and spacing purposes.
Callback fired any time the favorite status changes. The new favorite status will be passed as second parameter.
function (event: Event, checked: bool ) => undefined
Inline style for custom styling.
Should be used only for positioning and spacing purposes.
Location object or url string to link to.
shape
Methods
FavoriteTableRowCell.render
function () => undefined