message.js

Summary
message.js
bbop.widget.messageTODO: Code needs to be cleaned with bbop.html.
Functions
messageContructor for the bbop.widget.message object.
noticeTemporarily display a messsage styled for notices.
warningTemporarily display a messsage styled for warnings.
errorTemporarily display a messsage styled for errors.

bbop.widget.message

TODO: Code needs to be cleaned with bbop.html.

BBOP object to produce a self-constructing/self-destructing sliding message/announcments/warnings.

Note that this is a steal of some older code.  We’ll probably have to clean this up a bit at some point.

These messages make use of the classes “bbop-js-message” and “bbop-js-message-CTYPE”, where CTYPE is one of “error”, “warning”, or “notice”.

Initial placement and the likes should be manipulated through “bbop-js-message”--the created divs are append to the end of the body and will not be particularly useful unless styled.

This is a completely self-contained UI.

Summary
Functions
messageContructor for the bbop.widget.message object.
noticeTemporarily display a messsage styled for notices.
warningTemporarily display a messsage styled for warnings.
errorTemporarily display a messsage styled for errors.

Functions

message

bbop.widget.message = function()

Contructor for the bbop.widget.message object.

A trivial invocation might be something like

var m = new bbop.widget.message();
m.notice("Hello, World!");

Arguments

n/a

Returns

self

notice

this.notice = function(msg)

Temporarily display a messsage styled for notices.

Parameters

msgthe message

Returns n/a

warning

this.warning = function(msg)

Temporarily display a messsage styled for warnings.

Parameters

msgthe message

Returns n/a

error

this.error = function(msg)

Temporarily display a messsage styled for errors.

Parameters

msgthe message

Returns n/a

Right now contains bbop.html.tag, but all html producing functions should go in here somewhere.
bbop.widget.message = function()
Contructor for the bbop.widget.message object.
this.notice = function(msg)
Temporarily display a messsage styled for notices.
this.warning = function(msg)
Temporarily display a messsage styled for warnings.
this.error = function(msg)
Temporarily display a messsage styled for errors.
Close