language.select.aria.headerCheckbox
自:Select 2.0.0 起
用作標頭核取方塊的 aria-label 的文字。
請注意 - 此屬性需要 DataTables 的 Select 擴充套件。
描述
此選項用於設定字串值,以指派給表格標頭中「全選」核取方塊的 aria-label
(請參閱 select.headerCheckbox
)。
輔助技術(例如螢幕閱讀器)使用 aria-label
屬性來為元素提供額外資訊,並向最終使用者描述其用途。如果未使用輔助技術,則不會顯示或以其他方式使用它。
類型
此選項可以給定以下類型
預設值
- 值:
選取所有列
範例
設定標頭核取方塊的 aria 標籤,並使用渲染器設定列核取方塊的標籤。
new DataTable('#example', {
columnDefs: [
{
orderable: false,
render: DataTable.render.select(),
targets: 0
}
],
language: {
select: {
aria: {
headerCheckbox: 'Sélectionner toutes les lignes',
rowCheckbox: 'Sélectionner une ligne'
}
}
},
select: {
style: 'os',
selector: 'td:first-child'
},
order: [[1, 'asc']]
});
相關
以下選項直接相關,並且在您的應用程式開發中可能也很有用。