PasteboardInfotron

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 2. about 5 years by xexamedes
  2. 1. over 5 years by xexamedes
 

A really simple blueprint which can hide or display its wrapped contents. Come to think of, really usable too :)

## Sample Declaration

<div id="pasteboard1"
     impl="~01efbb741c865611dbb3d7607d325e27da"     
     script="http://localhost/Pasteboard.js">
</div>
    ..... any number of elements

Input Terminals

  • set_visibility: (expected message type: boolean)

Output Terminals

  • none

Properties

  • none

Demos that use it

  • N/A

How does it work?

This blueprint can hide what it wraps on demand


BLUEPRINT(
"~01efbb741c865611dbb3d7607d325e27da",
[
 ["set_visibility", "onVisibility", 10]
],
[
 
],
function(Class)
{
    Class.prototype.onVisibility = function(msg)
    {
        if (msg) {
            this.dom_node.style.display = "block";
        } else {
            this.dom_node.style.display = "none";
        }
    };

}, "Pasteboard");