pub fn on_close_click<T: 'static + Fn(&mut StatesContext, Point) -> bool>(
        mut self,
        callback: T,
    ) -> Self {
        self.state.on_close_click_callback = Some(Box::new(callback));
        self
    }
///Set the callback that is called when user click on the close button near the header (generally used to close the tab)
Set the callback that is called when user click on the close button near the header (generally used to close the tab)
Set the callback that is called when user click on the close button near the header ( generally used to close the tab )
pub fn on_close_click<T: 'static + Fn(&mut StatesContext, Point) -> bool>(
        mut self,
        callback: T,
    ) -> Self {
        self.state.on_close_click_callback = Some(Box::new(callback));
        self
    }
pub fn on_close_click < T : ' static + Fn ( & mut StatesContext , Point ) -> bool > ( mut self , callback : T , ) -> Self { self . state . on_close_click_callback = Some ( Box :: new ( callback ) ) ; self }
Set the callback that is called when user click on the close button near the header (generally used to close the tab)
Set the callback that is called when user click on the close button near the header ( generally used to close the tab )
mut self
callback
T