(Classic) close_notification()

Engine Compatibility

close_notification is not supported by the Node engine.

close_notification(<selector>)

Attach a close event for a notification to an element or set of elements identified by the selector string that is the argument, where <selector>, is any valid JQuery Selector.

The following ruleset shows close_notification being used

ruleset a1299x166 {
  meta {
    name "Close Notification Example"
    author "Nathan Cerny"
    logging off
  }
  dispatch {
    //domain "docs.kynetx.com"
  }
  rule sticky_notification is active {
    select using ".*" setting ()
    {
        notify("Another way to...", '<a id="close_notification" href="#">Close Notification!</a>') with sticky = true;
        close_notification("#close_notification");
    }
  }
}

The following demonstrates the preceding rule:


Copyright Picolabs | Licensed under Creative Commons.