Condition Base

<sw-condition-base>

prototype
Base condition for the condition-tree. This component must be a child of sw-condition-tree.

Usage

<sw-condition-base :condition="condition"></sw-condition-base>

Component properties

Property name Type Default
condition Object

Methods

Method name Parameters
onCreateBefore No parameters
onCreateAfter No parameters
onDeleteCondition No parameters
ensureValueExist No parameters

Imports

  • ./sw-condition-base.html.twig
  • ./sw-condition-base.scss

Watcher

  • value

Inject

  • conditionDataProviderService
  • availableTypes
  • childAssociationField

SASS variables

Variable name Value
$sw-condition-color-border-default $color-gray-300 (#D1D9E0)

Twig blocks

  • sw_condition_base_field_condition
  • sw_condition_value_content
  • sw_condition_base_field_create_before_action
  • sw_condition_base_field_create_after_action
  • sw_condition_base_field_delete_action
  • sw_condition_base_field_actions
  • sw_condition_base_content
  • sw_condition_base_error
  • sw_condition_base