Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
948 B

<div [formGroup]="triggerForm.form" class="form-horizontal">
<div class="form-group">
<label for="condition">Condition</label>
<sqx-control-errors for="condition"></sqx-control-errors>
<textarea class="form-control code" id="condition" formControlName="condition" placeholder="Optional condition as javascript expression"></textarea>
</div>
<div class="help">
<h4>Conditions</h4>
<p>Conditions are javascript expressions that define when to trigger, for example:</p>
<ul class="help-examples">
<li class="help-example">
Specific events:<br/>
<sqx-code>event.type == 'Created' || event.type == 'Updated'</sqx-code>
</li>
<li class="help-example">
Specific schema only:<br/>
<sqx-code>schemaId.name === 'my-schema'</sqx-code>
</li>
</ul>
</div>
</div>