* Gets the aria-sort attribute that should be applied to this sort header. If this header * is not sorted, returns null so that the attribute is removed from the host element. Aria spec * says that the aria-sort property should only be present on one header at a time, so removing * ensures
()
| 205 | * ensures this is true. |
| 206 | */ |
| 207 | _getAriaSortAttribute() { |
| 208 | if (!this._isSorted()) { |
| 209 | return 'none'; |
| 210 | } |
| 211 | |
| 212 | return this._sort.direction == 'asc' ? 'ascending' : 'descending'; |
| 213 | } |
| 214 | |
| 215 | /** Whether the arrow inside the sort header should be rendered. */ |
| 216 | _renderArrow() { |