Author: Rusty Klophaus (@rustyio)

# Base Element Element

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

## Table of Contents

- 1 Base Element

## 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.

### Usage

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

### 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.

Date: 2012-10-18 03:25:56 CDT

Author: Rusty Klophaus (@rustyio)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

## Comments

Note:To specify code blocks, just use the generic code block syntax:

    <pre><code>your code here</code></pre>

comments powered by Disqus