當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


JQuery Mobile Collapsibleset expandedIcon用法及代碼示例

用法:

expandedIcon
類型:String
默認:"minus"
設置處於展開狀態時可折疊容器標題的圖標。

此選項也作為數據屬性公開:data-expanded-icon="arrow-d"

代碼示例:

使用指定的expandedIcon 選項初始化可折疊集:

$( ".selector" ).collapsibleset({
  expandedIcon: "arrow-d"
});

初始化後獲取或設置expandedIcon選項:

// Getter
var expandedIcon = $( ".selector" ).collapsibleset( "option", "expandedIcon" );
 
// Setter
$( ".selector" ).collapsibleset( "option", "expandedIcon", "arrow-d" );

相關用法


注:本文由純淨天空篩選整理自jquerymobile.com大神的英文原創作品 Collapsibleset expandedIcon。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。