register Node Status
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
id
(Required)
Type: String
The identifier of the status.
label
(Required)
Type: String
The display label of the node status.