v1.2
Added support for adding data attributes to form fields. Many JavaScript plugins now rely on the use of such attributes so it seemed like a sensible feature to add. Thanks to @littlbr for the suggestion.
Attributes can be added to any text or select field by using the new 'attributes' parameter as follows:
$args['fields'][] = array('type' => 'search',
'label' => 'Search',
'format' => 'text',
'attributes' => array('data-src' => 12345, 'data-color' => 'red') );
This example will generate HTML for a search field that looks something like this:
<input type="text" data-src="12345" data-color="red" class="wpas-text" name="search_query" >