# Button Element Element

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

## Table of Contents

- 1 Button Element - #button {}

## 1 Button Element - #button {}

The button element produces an HTML button. When clicked, the button will cause a Nitrogen postback.

### Usage

    #button { text="Go!", postback={click, goButton} }

### Attributes

text - (string)
  The button's title.
html_encode - (boolean)
  Set to true to safely html-encode the text.
postback - (Erlang term)
  Clicking on the button will initiate a Nitrogen postback with the supplied term.
click - (Action or List of Actions)
  Wires the selected actons to the \"click\" events. Due to the commonality of binding actions to the click event, this is merely a shortcut for

    #button { text="Do Something", actions=[
       #event{type=click,actions=ListOfActions}
    ]}

### See Also

- Base
- Link
- Textbox
- Password
- Textarea
- Checkbox
- Dropdown
- Dropdown Option

Date: 2012-10-18 03:25:52 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