tab navigation

  • 1
  • Question
  • Updated 1 year ago
  • Answered
Can I setup hotkeys to toggle between two tabs?
Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb

Posted 1 year ago

  • 1
Photo of mB Roman Melnik

mB Roman Melnik

  • 2,802 Points 2k badge 2x thumb
Very interesting idea.. I like it! Yes, i *think* you can.

Although hotkeys won't appear on the Tab Component, I would suggest creating a Button Set that is hidden with all of the hotkeys you need.

The buttons themselves would trigger a javascript snippet that flips the Tabs. Very similar to how in Chrome you can switch tabs using the "CTRL+1-9 or CMD+1-9" shortcuts.



There might be a better way I'm not thinking of.
(Edited)
Photo of mB Roman Melnik

mB Roman Melnik

  • 2,802 Points 2k badge 2x thumb
As for the javascript itself, I think I just found it here: https://community.skuid.com/skuid/topics/tabset-javascript-navigation

Haven't tested to see if it works with newer versions of Skuid though. Hope it helps!