# vim: sw=3 ts=3 ft=org

#+TITLE: Min Length Validator 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]]

* Min Length Validator - #min\_length {}

  Validate the minimum length of text in a textbox.

** Usage

#+BEGIN_SRC erlang
   wf:wire(ButtonID, TextBoxID, #validate { validators=[<br>
     #min_length { text="Minimum of 4 characters.", length=4 }<br>
   ]})
#+END_SRC

** Attributes

   + text - (/string/) :: The text to display if validation fails.

   + length - (/integer/) :: The minimum length of text.
