Plugin : Item monitor

Author:Rex.Rainbow

Download

Properties

Domain

  • The root location of the Firebase data.

Sub domain

  • Sub domain for this function.

Actions

Domain

Action:Set domain

  • Set domain ref.
    • Domain ( string ) : The root location of the Firebase data.
    • Sub domain ( string ) : Sub domain for this function.

Monitor

Action:Start

  • Start monitor.

Action:Stop

  • Stop monitor.

Query

Action:Set query

  • Set query object.
    • Query ( object ) : Query object.

Expressions

For Each

Expression:CurItemID

  • Get current itemID in a For Each loop, in last load result. Or in save/remove callback.

Expression:CurItemContent

  • Get last content in JSON string, used under "condition: On item added" or "condition: On item removed". Add 2nd parameter for specific key, 3rd parameter for default value if this key is not existed.

Expression:CurKey

  • Get current key in a For Each loop, in last load result.

Expression:CurValue

  • Get current value in a For Each loop, in last load result.

Item

Expression:LastValue

  • Get last value of key, used under "condition: On any value changed", "condition: On key added" or "condition: On key removed".

Expression:PrevValue

  • Get previous value of key, used under "condition: On any value changed", "condition: On key added" or "condition: On key removed".

Items

Expression:LastItemID

  • Get last itemID, used under "condition: On item added" or "condition: On item removed".

Expression:LastItemContent

  • Get last content in JSON string, used under "condition: On item added" or "condition: On item removed". Add 2nd parameter for specific key, 3rd parameter for default value if this key is not existed.

Properties

Expression:LastPropertyName

  • Get last content in JSON string, used under "condition: On any value changed", "condition: On key added" or "condition: On key removed".

Table

Expression:At

  • Get value by itemId and key in last load result. Add 3rd parameter for default value if this key is not existed.
    • ID ( string ) : ID of item.
    • Key ( string ) : The name of the key.

Conditions

Load

Condition:For each itemID

  • Repeat the event for each itemID of load result which sorted by itemID.
    • Order ( Combo ) : Order of itemID.
      • Options : ["Small to large","Large to small"]

Condition:For each key

  • Repeat the event for each key of a item of load result.
    • ID ( string ) : ID of item.

Monitor

Condition:On any item changed

  • Triggered when any item changed, included item added, removed, value changed.

Monitor - item

Condition:On item added

  • Triggered when item added.

Condition:On item removed

  • Triggered when item removed.

Monitor - key

Condition:On value changed

  • Triggered when value changed.
    • Property ( string ) : Property name of item.

Condition:On any value changed

  • Triggered when any value changed.

Condition:On key added

  • Triggered when item added.

Condition:On key removed

  • Triggered when key removed.