Upgrade to v2.7
Fyne API v2.7
app
canvas
container
package container
AppTabs
AppTabs
Clip
DocTabs
DocTabs
InnerWindow
InnerWindow
MultipleWindows
MultipleWindows
Navigation
Scroll
Scroll
ScrollDirection
ScrollDirection
Split
Split
TabItem
TabItem
TabLocation
TabLocation
ThemeOverride
ThemeOverride
data/binding
data/validation
dialog
driver
driver/desktop
driver/embedded
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "container.TabItem"
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.4
func NewTabItem
func NewTabItem(text string, content fyne.CanvasObject) *TabItem
NewTabItem creates a new item for a tabbed widget - each item specifies the content and a label for its tab.
Since:
1.4
func NewTabItemWithIcon
func NewTabItemWithIcon(text string, icon fyne.Resource, content fyne.CanvasObject) *TabItem
NewTabItemWithIcon creates a new item for a tabbed widget - each item specifies the content and a label with an icon for its tab.
Since:
1.4
func (*TabItem) Disabled
func (ti *TabItem) Disabled() bool
Disabled returns whether or not the TabItem is disabled.
Since:
2.3