Skip to content

Commit deab068

Browse files
committed
Add ScalaDoc to raw.Html.tabIndex
1 parent 87ab4d7 commit deab068

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/main/scala/org/scalajs/dom/raw/Html.scala

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,9 +3624,28 @@ abstract class HTMLElement extends Element {
36243624
* MDN
36253625
*/
36263626
var contentEditable: String = js.native
3627+
36273628
/**
36283629
* Gets/sets the tab order of the current element.
36293630
*
3631+
* The '''tabindex''' global attribute is an integer indicating if the element can take input
3632+
* focus (is ''focusable''), if it should participate to sequential keyboard navigation, and if
3633+
* so, at what position. It can take several values:
3634+
*
3635+
* - a ''negative value'' means that the element should be focusable, but should not be
3636+
* reachable via sequential keyboard navigation;
3637+
*
3638+
* - '''0''' means that the element should be focusable and reachable via sequential keyboard
3639+
* navigation, but its relative order is defined by the platform convention;
3640+
*
3641+
* - a ''positive value'' which means should be focusable and reachable via sequential keyboard
3642+
* navigation; its relative order is defined by the value of the attribute: the sequential
3643+
* follow the increasing number of the '''tabindex'''. If several elements share the same
3644+
* tabindex, their relative order follows their relative position in the document).
3645+
*
3646+
* An element with a '''0''' value, an invalid value, or no '''tabindex''' value should be placed
3647+
* after elements with a positive '''tabindex''' in the sequential keyboard navigation order.
3648+
*
36303649
* MDN
36313650
*/
36323651
var tabIndex: Int = js.native

0 commit comments

Comments
 (0)