You are not logged in! Log in or Register

Blocker

Description

A Blocker component blocks and (optionally) clears a dataflow between two blocks. A Blocker takes any type of input and will output this transparently except when blocked.

Attributes

  • BinaryInput [binary input]: Connect any block that outputs binary data.
  • Blocked [boolean]: Whether or not the information flow is blocked. Default: false.
  • BlockingTrigger [trigger input]: Connect a trigger that will block the Blocker when fired.
  • ClearWhenBlocked [boolean]: Whether or not the information flow is cleared when the Blocked attribute is set to true. Default: false.
  • DataInput [data input]: Connect any block that outputs data.
  • Name [string]: The name of the block.
  • StringInput [string input]: Connect any block that outputs a string.
  • TriggerInput [trigger input]: Connect any block that outputs a trigger.
  • UnblockingTrigger [trigger input]: Connect a trigger that will unblock the Blocker when fired.

Output connectors

  • Binary: Outputs the input from the BinaryInput (unless blocked).
  • Data: Outputs the input from the DataInput (unless blocked).
  • String: Outputs the input from the StringInput (unless blocked).
  • Trigger: Outputs the input from the TriggerInput (unless blocked).

Example

 1 <Value Name="textvalue" StringValue="thank you!"/>
 2 <Blocker Name="blocker" StringInput="textvalue" Blocked="true"
 3     UnblockingTrigger="unblockbutton"/>
 4 
 5 <VisualPage>
 6   <VisualContent>
 7     <VisualText Name="text" Input="blocker"/>
 8     <VisualButton Name="unblockbutton" Padding="5">
 9       <VisualText Text="Click me!"/>
10     </VisualButton>
11   </VisualContent>
12 </VisualPage>
13 
14 <!-- When started, only the button is visible. The VisualText has no text since it’s input is blocked. -->
15 <!-- When clicking the button, the Blocker is unblocked and the text receives its’ content. -->
Example image

User comments

Nothing comments yet. Be the first!

Leave a comment

You need to be logged in to post a comment.