searchPanes.panes.options.label
自:SearchPanes 1.0.0 起
定義自訂窗格選項的標籤。
請注意 - 此屬性需要 DataTables 的 SearchPanes 擴充功能。
描述
預設情況下,label
的值是未定義的。
將 searchPanes.panes.options.label
設定為字串值,將允許自訂窗格在搜尋選項列表中顯示該字串。
類型
預設值
- 值:
未定義
searchPanes.panes.options.label
的預設值是未定義,因為自訂窗格必須在外部定義。
範例
定義自訂窗格選項
new DataTable('#myTable', {
layout: {
top1: {
searchPanes: {
panes: [
{
options: [
{
label: 'Accountants in Tokyo',
value: function (rowData, rowIdx) {
return rowData[2] === 'Accountant' && rowData[3] === 'Tokyo';
}
}
]
}
]
}
}
}
});
相關
以下選項直接相關,也可能在您的應用程式開發中很有用。