FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

highlighting a tabset

Open linojon opened this issue 4 years ago • 1 comments

hi, i'd like to be able to display a highlight (css border) around a tabset. Is there a way to do this with the existing CSS or do you need to provide a config className on the flexlayout__tabset div?

linojon avatar Aug 09 '21 16:08 linojon

I think you can do this by getting the selected tab of the tabset, calling getTabRect on it to get the coordinates, and then rendering a custom element over the layout with the desired outline.

Unfortunately since tabsets do not have DOM nodes it is not possible to do this using only CSS. And since tabs do not give you their DOM node you cannot manipulate the existing elements.

LoganDark avatar Aug 13 '21 13:08 LoganDark