tab

package
v0.57.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "CustomTab"

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionOverride added in v0.51.0

type ActionOverride struct {
	ActionName           string       `xml:"actionName"`
	Comment              *string      `xml:"comment"`
	Content              *string      `xml:"content"`
	FormFactor           *string      `xml:"formFactor"`
	SkipRecordTypeSelect *BooleanText `xml:"skipRecordTypeSelect"`
	Type                 string       `xml:"type"`
}

ActionOverride is one <actionOverrides> entry: the Lightning page assigned to a tab action. The Home tab's org-default page assignment is recorded as an override of its Tab action on standard-home.

type CustomTab

type CustomTab struct {
	metadata.MetadataInfo
	XMLName         xml.Name         `xml:"CustomTab"`
	Xmlns           string           `xml:"xmlns,attr"`
	ActionOverrides []ActionOverride `xml:"actionOverrides"`
	AuraComponent   *struct {
		Text string `xml:",chardata"`
	} `xml:"auraComponent"`
	CustomObject *struct {
		Text string `xml:",chardata"`
	} `xml:"customObject"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	FlexiPage *struct {
		Text string `xml:",chardata"`
	} `xml:"flexiPage"`
	FrameHeight *struct {
		Text string `xml:",chardata"`
	} `xml:"frameHeight"`
	HasSidebar *struct {
		Text string `xml:",chardata"`
	} `xml:"hasSidebar"`
	Icon *struct {
		Text string `xml:",chardata"`
	} `xml:"icon"`
	Label *struct {
		Text string `xml:",chardata"`
	} `xml:"label"`
	LwcComponent *struct {
		Text string `xml:",chardata"`
	} `xml:"lwcComponent"`
	Motif struct {
		Text string `xml:",chardata"`
	} `xml:"motif"`
	Page *struct {
		Text string `xml:",chardata"`
	} `xml:"page"`
	URL *struct {
		Text string `xml:",chardata"`
	} `xml:"url"`
	UrlEncodingKey *struct {
		Text string `xml:",chardata"`
	} `xml:"urlEncodingKey"`
}

func Open

func Open(path string) (*CustomTab, error)

func (*CustomTab) SetMetadata

func (c *CustomTab) SetMetadata(m metadata.MetadataInfo)

func (*CustomTab) Type

func (c *CustomTab) Type() metadata.MetadataType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL