Scrolls tabs if they overflow.
scroll(direction, [instant])
direction |
string, direction of scrolling |
instant |
boolean, if true scrolling is instant |
Returns
undefined.
Description
Scrolling will only be applied of the container where tabs are displayed is smaller then rendered tabs. The
direction
argument can be either 'left' or 'right'.
If you have tabs defined in the following way:
You can trigger scroll in the following way: