Is there a way to display tab elements on a webpage without them automatically wrapping into a new row if there are too many? Instead, I would like an arrow icon to appear at the end of the tabs so users can cycle between tab groups.
The challenge is that the width of the container holding the tabs can change dynamically, the number of tabs can vary, and each tab has a different width.
Could a JavaScript function be created to determine how many tabs could fit on a single row within the container? It would also be helpful to know the total width of all rendered tabs.
By utilizing this function, I could calculate the maximum number of tabs to display on the page and then separate any additional tabs into another group.