Rule Modal

<sw-rule-modal>

ready
The sw-rule-modal component is used to create or modify a rule.

Usage

<sw-rule-modal ruleId="0fd38734776f41e9a1ba431f1667e677" @save="onSave" @modal-close="onCloseModal">
</sw-rule-modal>

Component properties

Property name Type Default
ruleId String
allowedRuleScopes Array

Methods

Method name Parameters
beforeMountComponent No parameters
loadEntityData No parameters
saveAndClose No parameters
emitSave No parameters
removeOriginalConditionTypes conditions
areConditionsValueEqual conditionA conditionB
conditionsClientValidation conditions error
hasDeletedParent parentId conditions

Imports

  • src/core/data/LocalStore
  • ./sw-rule-modal.html.twig
  • ./sw-rule-modal.scss

Mixins

  • notification
  • placeholder

Inject

  • ruleConditionDataProviderService

Twig blocks

  • sw_rule_modal_basic_info_name
  • sw_rule_modal_basic_info_priority
  • sw_rule_modal_basic_info_description
  • sw_rule_modal_basic_info
  • sw_rule_modal_condition_tree
  • sw_rule_modal_footer_button_abort
  • sw_rule_modal_footer_button_save
  • sw_rule_modal_footer
  • sw_rule_modal