BetaCondition to filter bulk actions
const registry = platform.get(PlatformServiceName.ConditionRegistry);
const isBulkAction = {
id: 'action.is-bulk',
type: 'action',
evaluate: (action) => action.command.name.startsWith('bulk-')
};
registry.addCondition(isBulkAction);
Use a RulePrimitive that declares reads: ['action']
directly, rather than a typed condition.
A specialized condition type for evaluating Action instances.
Action conditions are used to control the availability or visibility of actions themselves, based on properties of the action. This is less common than LimeObject conditions but useful for creating dynamic action menus that filter or organize actions based on their metadata.