The text input plugin has the following options:
clearSearchButtonText
default: "clear text"
Sets the text used for the button that clears the search input of text.
$('.selector').textinput({ clearSearchButtonText: "custom value" });
disabled
default: false
Sets the default state of the search input to disabled when "true".
$('.selector').textinput({ disabled: true });
initSelector
default: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input:not([type])"
This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as textinputs. To change which elements are initialized, bind this option to the mobileinit event:
$( document ).bind( "mobileinit", function(){ $.mobile.textinput.prototype.options.initSelector = ".myInputs"; });
mini
Sets the size of the element to a more compact, mini version. This option is also exposed as a data attribute: data-mini="true"
data-mini="true"
$('.selector').textinput({ mini: true });
theme
default: null, inherited from parent
Sets the color scheme (swatch) for all instances of this widget. It accepts a single letter from a-z that maps to one of the swatches included in your theme. By default, it will inherit the same swatch color as its parent container if not explicitly set. This option is also exposed as a data attribute: data-theme="a"
data-theme="a"
$('.selector').textinput({ theme: "a" });