Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Script

Embed javascript inline code

Some embed variables:

  • Vars: Global variable
  • Validate: Global validators
  • Utils: Global utility functions
  • Context: Global context (log, event...)
  • $: this
  • $$: parent which wrap this tag
- Vars:
    arr: [1,2,3,4]

- Script: |
    Context.log('Do something here')
    Vars.arr = Vars.arr.filter(e => e > 3)

- Echo: ${arr}

Hierarchy

  • Tag
    • Script

Index

Constructors

constructor

  • new Script(attrs: string): Script
  • Parameters

    • attrs: string

    Returns Script

Properties

async

async: boolean

Run async

disabled

disabled: boolean

Ignore this, not run

ignoreError

ignoreError: boolean

Keep run the next when got error

slient

slient: boolean

Not show log

testIt

testIt: boolean

Only allow run it then ignore others which not set testIt or set it to false

title

title: string

Step title

vars

vars: any

Declare global variable