mirror of https://github.com/Squidex/squidex.git
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.
33 lines
1.1 KiB
33 lines
1.1 KiB
<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">
|
|
Large assets:<br/>
|
|
|
|
<sqx-code>event.fileSize > 100000000</sqx-code>
|
|
</li>
|
|
<li class="help-example">
|
|
Images only:<br/>
|
|
|
|
<sqx-code>event.isImage</sqx-code>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|