当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


JQuery Mobile Collapsible expandCueText用法及代码示例


用法:

expandCueText
类型:String
默认:" click to expand contents"
此文本用于为使用屏幕阅读器软件的用户提供声音反馈。

如果单个可折叠容器的值未设置,但该容器是可折叠集的一部分,则从父可折叠集继承该值。

此选项也作为数据属性公开:data-expand-cue-text=" expand with a click"

代码示例:

使用指定的expandCueText 选项初始化可折叠:

$( ".selector" ).collapsible({
  expandCueText: " expand with a click"
});

初始化后获取或设置expandCueText选项:

// Getter
var expandCueText = $( ".selector" ).collapsible( "option", "expandCueText" );
 
// Setter
$( ".selector" ).collapsible( "option", "expandCueText", " expand with a click" );

相关用法


注:本文由纯净天空筛选整理自jquerymobile.com大神的英文原创作品 Collapsible expandCueText。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。