0
有沒有什麼方法可以讓我的屏幕閱讀器用戶可以訪問我的Vaadin-Grid
?我在想,只有每行需要被選中而不是每行的每個單元格。我在每一行也有一個複選框,所以這也需要考慮。Vaadin網格輔助功能 - 聚合物
任何幫助將不勝感激,並請記裸這仍然是一項正在進行的工作,所以我將努力爲我去添加ARIA
標籤和事情。
Here is a JSBin with the actual code
我vaadin-grid
HTML
<vaadin-grid aria-label="Server properties list" id="material" items="[[uksproperties]]">
<vaadin-grid-selection-column width="66px" flex="0" select-all="{{selectAll}}">
<template class="header">
<paper-checkbox checked="{{selectAll}}"></paper-checkbox>
</template>
<template>
<paper-checkbox checked="{{selected}}"></paper-checkbox>
</template>
</vaadin-grid-selection-column>
<vaadin-grid-column>
<template class="header">
<div class="horizontal layout cell">
<label for="keyFilter" class="keyText cell flex">Key</label>
<vaadin-grid-filter class="cell" id="keyFilterVaadin" path="key" value="[[_filterKey]]">
<paper-input aria-describedby="keyDescription" no-float-label class="keyFilter" id="keyFilter" slot="filter" placeholder="Filter search" value="{{_filterKey::input}}" focus-target on-input="clearAppear" >
<iron-icon suffix icon="clear" class="clearIcon" on-click="clearField" clear-item-id="keyFilter"></iron-icon>
</paper-input>
<span id="keyDescription" style="display:none" class="description">Input text to filter to properties list by "Key" search</span>
</vaadin-grid-filter>
</div>
</template>
<template class="cell"><div class="blue">[[item.key]]</div></template>
</vaadin-grid-column>
<vaadin-grid-column>
<template class="header">
<div class="cell">
value
<div>
</template>
<template class="cell">[[item.value]]</template>
</vaadin-grid-column>
<vaadin-grid-column>
<template class="header">
<div class="horizontal layout">
<div class="cell last flex ">
Server
</div>
<paper-button slot="filter" class="export" on-click="empty">
<iron-icon icon="launch"></iron-icon>
Export
</paper-button>
</div>
</template>
<template class="cell last">[[item.server]]</template>
</vaadin-grid-column>
</vaadin-grid>
可以做小提琴嗎? – Ofisora
當然@Ofisora。看到我編輯的問題爲我的JSBin版本。 – physicsboy