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" :level="0"></sw-condition-base>

Component properties

Property name Type Default
condition Object
level Number
parentDisabledDelete Boolean false

Methods

Method name Parameters
createId No parameters
checkErrors No parameters
beforeMountComponent No parameters
mountedComponent No parameters
beforeDestroyComponent No parameters
deleteError No parameters
getLabel type
createdComponent No parameters
addClientFieldValidationMethod No parameters
locateConditionTreeComponent No parameters
applyDefaultValues No parameters
deleteCondition No parameters
conditionChanged value
translateConditions No parameters

Imports

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

Watcher

  • currentLocale

Mixins

  • validation
  • notification

Inject

  • config
  • conditionStore
  • isApi

SASS variables

Variable name Value
$sw-condition-base-color-primary #758CA3
$sw-condition-base-color-primary-text $color-white (#FFF)
$sw-condition-base-color-background $color-white (#FFF)
$sw-condition-base-color-secondary $color-white (#FFF)
$sw-condition-base-color-secondary-text #4D6989
$sw-condition-base-color-border #D6DDE5
$sw-condition-base-font-size 14px
$sw-condition-base-z-index-arrow 100
$sw-condition-base-color-error $color-crimson ($color-crimson-500)
$sw-condition-base-text-access-key $color-gutenberg ($color-darkgray-200)
$sw-condition-base-color-disabled $color-light-gray ($color-gray-100)

Twig blocks

  • sw_condition_base_before_container
  • sw_condition_base_field_condition
  • sw_condition_base_fields
  • sw_condition_base_field_before_actions
  • sw_condition_base_field_actions
  • sw_condition_base_errors
  • sw_condition_base

Slots

  • condition-fields