clickable_object.js

Summary
clickable_object.js
bbop.widget.display.clickable_objectBBOP object to produce a clickable image or a clickable text span, both producing something that can give its id for later clickable actions.
Functions
clickable_objectGenerator for a clickable object.

bbop.widget.display.clickable_object

BBOP object to produce a clickable image or a clickable text span, both producing something that can give its id for later clickable actions.

This is a method, not a constructor.

Summary
Functions
clickable_objectGenerator for a clickable object.

Functions

clickable_object

bbop.widget.display.clickable_object = function(label,
source,
id)

Generator for a clickable object.

TODO: May eventually expand it to include making a jQuery button.

Arguments

label[optional] the text to use for the span or label (defaults to ‘’)
source[optional] the URL source of the image (defaults to ‘’)
id[optional] the id for the object (defaults to generate_id: true)

Returns

bbop.html.span or bbop.html.image

bbop.widget.display.clickable_object = function(label,
source,
id)
Generator for a clickable object.
Close