用法:
wrapperClass
类型:String
默认:
""
此选项的值是一个字符串,其中包含一个以空格分隔的类列表,这些类将应用于 textinput 小部件的最外层元素。
此选项也作为数据属性公开:data-wrapper-class="true"
。
代码示例:
使用指定的wrapperClass
选项初始化文本输入:
$( ".selector" ).textinput({
wrapperClass: "custom-class"
});
初始化后获取或设置wrapperClass
选项:
// Getter
var wrapperClass = $( ".selector" ).textinput( "option", "wrapperClass" );
// Setter
$( ".selector" ).textinput( "option", "wrapperClass", "custom-class" );
相关用法
- JQuery Mobile Textinput clearBtnText用法及代码示例
- JQuery Mobile Textinput defaults用法及代码示例
- JQuery Mobile Textinput preventFocusZoom用法及代码示例
- JQuery Mobile Textinput keyupTimeoutBuffer用法及代码示例
- JQuery Mobile Textinput disable用法及代码示例
- JQuery Mobile Textinput clearBtn用法及代码示例
- JQuery Mobile Textinput enable用法及代码示例
- JQuery Mobile Textinput autogrow用法及代码示例
- JQuery Mobile Textinput theme用法及代码示例
- JQuery Mobile Textinput destroy用法及代码示例
- JQuery Mobile Textinput option用法及代码示例
- JQuery Mobile Textinput initSelector用法及代码示例
- JQuery Mobile Textinput enhanced用法及代码示例
- JQuery Mobile Textinput disabled用法及代码示例
- JQuery Mobile Textinput corners用法及代码示例
- JQuery Mobile Textinput refresh用法及代码示例
- JQuery Mobile Textinput create( event, ui )用法及代码示例
- JQuery Mobile Textinput classes用法及代码示例
- JQuery UI Tabs event用法及代码示例
- JQuery Mobile Toolbar hide用法及代码示例
- JQuery UI Tabs option用法及代码示例
- JQuery UI Tooltip position用法及代码示例
- JQuery UI Tooltip disabled用法及代码示例
- JQuery Mobile Toolbar addBackBtn用法及代码示例
- JQuery UI Tooltip items用法及代码示例
注:本文由纯净天空筛选整理自jquerymobile.com大神的英文原创作品 Textinput wrapperClass。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。