pub trait AddTab: TabsPolicy {
    // Required method
    fn add_tab(
        build: &mut Self::Build,
        name: impl Into<LabelText<Self::Input>>,
        child: impl Widget<Self::Input> + 'static
    );
}
Expand description

AddTabs is an extension to TabsPolicy. If a policy implements AddTab, then the add_tab and with_tab methods will be available on the Tabs instance.

Required Methods§

fn add_tab( build: &mut Self::Build, name: impl Into<LabelText<Self::Input>>, child: impl Widget<Self::Input> + 'static )

Add a tab to the build type.

Implementors§