Focus groups automatically order the tabbable inputs within them, with the ability to sort items using relational or absolute ordering. Focus groups can also be embedded to provide for more intuitive grouped ordering, or to create discrete groupings with isolated tab groups.
JavaScript
/* * inv-focus-group * @options - Object - allows overrides of default settings for each focus group */ { 'loop' // {boolean} should loop to other side at edges. default: true 'isolate' // {boolean} isolates this focus group, and steals focus on creation if 'autofocus' is true. Typically used for popups. default: false 'autoFocus' // {boolean} should focus group attempt to auto focus first ordered element. default: true 'forceFocus' // {boolean} forces this group to take focus, bypassing the standard deferments. default: false } /* * optional child ordering parameters */ 'focus-before' // {string} id of tabbable item or focus-group to place current tabbable item before 'focus-after' // {string} id of tabbable item or focus-group to place current tabbable item after 'focus-index' // {integer} zero based absolute index to place current tabbable item at within the current focus-group