# vim: sw=3 ts=3 ft=org
#+TITLE: Add Class Action Element
#+STYLE: <LINK href='../stylesheet.css' rel='stylesheet' type='text/css' />
#+AUTHOR: Rusty Klophaus (@rustyio)
#+OPTIONS:   H:2 num:1 toc:1 \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+EMAIL: 
#+TEXT: [[file:../index.org][Getting Started]] | [[file:../api.org][API]] | [[file:../elements.org][Elements]] | [[file:../actions.org][*Actions*]] | [[file:../validators.org][Validators]] | [[file:../handlers.org][Handlers]] | [[file:../config.org][Configuration Options]] | [[file:../about.org][About]]

* Add Class Action - #add_class {}

  Call JQuery UI's [[http://docs.jquery.com/UI/Effects/addClass][add\_class(class, speed)]] on the target element.

** Usage

#+BEGIN_SRC erlang
   wf:wire(myDiv, #add_class { class=selected, speed=1000 })
#+END_SRC

** Attributes

   + class - (/atom/) :: Name of the class.

   + speed - (/integer/) :: Speed of the effect, in milliseconds.

** See Also

   + [[./base.html][base element]]

   + [[file:./remove_class.org][Remove Class]]

 
