tabIndex method

ElementBuilder tabIndex(
  1. int value
)

Sets the tab order index for keyboard navigation.

Values:

  • Positive numbers: explicit tab order
  • 0: natural document order
  • -1: not keyboard accessible

Example:

Input().tabIndex(1)
Button().tabIndex(-1)  // Skip in tab navigation

Implementation

ElementBuilder tabIndex(int value) {
  attr('tabindex', StringAttribute('$value'));
  return this;
}