Base Element Element

Getting Started | API | Elements | Actions | Validators | Handlers | About

Table of Contents

1 Base Element

In object-oriented parlance, all Nitrogen elements are subclasses of the base element. This means that all Nitrogen elements can use the attributes listed below.

1.1 Usage

#some_element { id=myElementID, show_if=true, class="someclass", style="border: solid 1px black;" }

1.2 Attributes

id - (atom)
The id of the element within the element tree. The id is used to wire events and to reference the element in client side javascript. See the Nitrogen wiki for more information.
actions - (action, list of actions)
The actions to attach to the element. This can be a single Nitrogen action, or a list of actions.
show_if - (boolean)
If set to true, this element will be rendered. Otherwise, it will not.
class - (atom or string)
Set the CSS class of the element.
style - (string)
Sets inline CSS style on the element.

Author: Rusty Klophaus (@rklophaus) <>

Date: 2010-06-14 18:35:23 EDT

HTML generated by org-mode 6.33f in emacs 22