Simple custom alert box tulip widget

What if you wanted to pop up a little alert box in Tulip? Currently you can use the alert ‘Toast’

But these fade away. You could also create a whole new step and show your error there.

Or, what if you create a simple javascript tulip custom widget.

We can take advantage of triggering our alert javascript widget based on a change to a variable. (I did this through sending an incrementing number to a counter variable)

The javascript is simply

And then you configure the Alert Box to use the ‘counter’ variable

Profit ???

https://github.com/mellerbeck/customWidget-Alert-Box

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s