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
allowedRuleScopes Array

Methods

Method name Parameters
createdComponent No parameters
conditionsChanged
saveAndClose No parameters

Imports

  • ./sw-rule-modal.html.twig
  • ./sw-rule-modal.scss

Mixins

  • notification
  • placeholder

Inject

  • repositoryFactory
  • 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