pub fn add_tab<T: Into<String>>(&mut self, header: T, body: Entity) {
        self.actions.push(TabWidgetAction::Add(header.into(), body));

        //At this point the tab has not been added yet, so we can check if len is == 0
        if self.tabs.is_empty() {
            self.select_by_index(0);
        }
    }
///Add a new tab to the widget.
Add a new tab to the widget.
Add a new tab to the widget .
pub fn add_tab<T: Into<String>>(&mut self, header: T, body: Entity) {
        self.actions.push(TabWidgetAction::Add(header.into(), body));
        //At this point the tab has not been added yet, so we can check if len is == 0
        if self.tabs.is_empty() {
            self.select_by_index(0);
        }
    }
pub fn add_tab < T : Into < String > > ( & mut self , header : T , body : Entity ) { self . actions . push ( TabWidgetAction :: Add ( header . into ( ) , body ) ) ; //At this point the tab has not been added yet, so we can check if len is == 0 if self . tabs . is_empty ( ) { self . select_by_index ( 0 ) ; } }
Add a new tab to the widget.
Add a new tab to the widget .
&mut self
header
T
body
Entity