Lime Web Components API Documentation - v6.24.0
    Preparing search index...

    Type Alias ActionConditionBeta

    ActionCondition: Condition<Action> & { type: "action" }

    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.

    Condition 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);