Select Rule Create

<sw-select-rule-create>

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

Usage

<sw-select-rule-create ruleId="0fd38734776f41e9a1ba431f1667e677"
ruleFilter="ruleFilter"

Component properties

Property name Type Default
ruleId String
ruleFilter Object

Methods

Method name Parameters
onSaveRule ruleId
onSelectRule event
openCreateRuleModal No parameters
onCloseRuleModal No parameters
onRuleSelectInput event

Imports

  • ./sw-select-rule-create.html.twig
  • ./sw-select-rule-create.scss

Inject

  • repositoryFactory

Twig blocks

  • sw_select_rule_create_select_before
  • sw_select_rule_create_select
  • sw_select_rule_create_rule_modal
  • sw_select_rule_create