caplin / FlexLayout

Docking Layout Manager for React
MIT License
944 stars 175 forks source link

Tab Blinking #223

Open sharmillamuthu opened 3 years ago

sharmillamuthu commented 3 years ago

Is there a way to enable tab (tab header) blinking dynamically?

nealus commented 3 years ago

You can adjust the rendering of the tab using the Layouts onRenderTab callback prop:

onRenderTab?: (
    node: TabNode,
    renderValues: ITabRenderValues,
) => void;

export interface ITabRenderValues {
    leading: React.ReactNode;
    content: React.ReactNode;
    name: string;
    buttons: React.ReactNode[];
}

set the content with a blinking component