registerNodeStatus

Type: Function

How to get registerNodeStatus?

JavaScript

import registerNodeStatus from 'fontoxml-families/src/registerNodeStatus.js'

Registers a node status component.

Use the StatusQuery CVK option to match certain statuses with a node.

Other

registerNodeStatus('needs-review', t('Review'));

Other

registerNodeStatus( 'needs-review', t('Review'),
{
 component: NeedsReviewStatusBadge,
 componentProps: {
  label: t('Review'),
  backgroundColor: 'state-message-error-color',
  clickOperation: 'scroll-node-into-view',
  tooltipContent: t('This document needs review.')
 }
});

Arguments

  1. id

    (Required)

    Type: String

    The identifier of the status.

  2. label

    (Required)

    Type: String

    The display label of the node status.

  3. options

    (Optional)

    The node status options. *

    Default value