0
是否有是修改的箭頭的tabindex並將其設置爲-1的可能性(的tabindex =「 - 1」)如何設置ui-timepicker(角靴)的tabindex?
下面是一個例子:http://angular-ui.github.io/bootstrap/versioned-docs/0.14.1/#/timepicker
是否有是修改的箭頭的tabindex並將其設置爲-1的可能性(的tabindex =「 - 1」)如何設置ui-timepicker(角靴)的tabindex?
下面是一個例子:http://angular-ui.github.io/bootstrap/versioned-docs/0.14.1/#/timepicker
我加入tabindex
ATTR和工作得很好。
<uib-timepicker ng-model="mytime" ng-change="changed()" hour-step="hstep" tabindex="-1" minute-step="mstep" show-meridian="ismeridian"></uib-timepicker>
我發現這個解決辦法,但我不知道的是,還有比這更好的另一個(修改箭頭tabindex屬性)!
this.$timeout(function() { // You might need this timeout to be sure its run after DOM render.
angular.element(document.querySelectorAll('td.uib-increment.hours > .btn.btn-link')).attr('tabindex','-1')
angular.element(document.querySelectorAll('td.uib-increment.minutes > .btn.btn-link')).attr('tabindex','-1')
angular.element(document.querySelectorAll('td.uib-decrement.hours > .btn.btn-link')).attr('tabindex','-1')
angular.element(document.querySelectorAll('td.uib-decrement.minutes > .btn.btn-link')).attr('tabindex','-1')
}, 0, false)
感謝@agriboz,但我想爲箭頭添加tabindex =「 - 1」! –