On this page
container.TabItem
import "fyne.io/fyne/v2/container"Usage
type TabItem
type TabItem struct {
Text string
Icon fyne.Resource
Content fyne.CanvasObject
}TabItem represents a single view in a tab view. The Text and Icon are used for the tab button and the Content is shown when the corresponding tab is active.
Since:
1.4func NewTabItem
func NewTabItem(text string, content fyne.CanvasObject) *TabItemNewTabItem creates a new item for a tabbed widget - each item specifies the content and a label for its tab.
Since:
1.4func NewTabItemWithIcon
func NewTabItemWithIcon(text string, icon fyne.Resource, content fyne.CanvasObject) *TabItemNewTabItemWithIcon creates a new item for a tabbed widget - each item specifies the content and a label with an icon for its tab.
Since:
1.4func (*TabItem) Disabled
func (ti *TabItem) Disabled() boolDisabled returns whether or not the TabItem is disabled.
Since:
2.3