flexipage

package
v0.45.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NAME = "FlexiPage"

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentInstance

type ComponentInstance struct {
	ComponentInstanceProperties []ComponentInstanceProperty `xml:"componentInstanceProperties"`
	ComponentName               TextLiteral                 `xml:"componentName"`
	Identifier                  TextLiteral                 `xml:"identifier"`
	VisibilityRule              *VisibilityRule             `xml:"visibilityRule"`
}

ComponentInstance represents a component instance

type ComponentInstanceProperty

type ComponentInstanceProperty struct {
	Name      TextLiteral  `xml:"name"`
	Type      *TextLiteral `xml:"type"`
	ValueList *struct {
		ValueListItems []struct {
			Value          TextLiteral     `xml:"value"`
			VisibilityRule *VisibilityRule `xml:"visibilityRule"`
		} `xml:"valueListItems"`
	} `xml:"valueList"`
	Value *TextLiteral `xml:"value"`
}

ComponentInstanceProperty represents a component instance property

type FieldInstance

type FieldInstance struct {
	FieldInstanceProperties []FieldInstanceProperty `xml:"fieldInstanceProperties"`
	FieldItem               TextLiteral             `xml:"fieldItem"`
	Identifier              TextLiteral             `xml:"identifier"`
	VisibilityRule          *VisibilityRule         `xml:"visibilityRule"`
}

FieldInstance represents a field instance

type FieldInstanceProperty

type FieldInstanceProperty struct {
	Name  TextLiteral `xml:"name"`
	Value TextLiteral `xml:"value"`
}

FieldInstanceProperty represents a field instance property

type FlexiPage

type FlexiPage struct {
	metadata.MetadataInfo
	XMLName          xml.Name          `xml:"FlexiPage"`
	Xmlns            string            `xml:"xmlns,attr"`
	Description      *TextLiteral      `xml:"description"`
	FlexiPageRegions []FlexiPageRegion `xml:"flexiPageRegions"`
	MasterLabel      TextLiteral       `xml:"masterLabel"`
	ParentFlexiPage  *TextLiteral      `xml:"parentFlexiPage"`
	SobjectType      *TextLiteral      `xml:"sobjectType"`
	Template         Template          `xml:"template"`
	FlexiPageType    TextLiteral       `xml:"type"`
}

func Open

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

func (*FlexiPage) DeleteField

func (p *FlexiPage) DeleteField(fieldName string) error

func (*FlexiPage) SetMetadata

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

func (*FlexiPage) Type

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

type FlexiPageRegion

type FlexiPageRegion struct {
	ItemInstances []ItemInstance `xml:"itemInstances"`
	Mode          *TextLiteral   `xml:"mode"`
	Name          TextLiteral    `xml:"name"`
	Type          TextLiteral    `xml:"type"`
}

FlexiPageRegion represents a region in a FlexiPage

type ItemInstance

type ItemInstance struct {
	ComponentInstance *ComponentInstance `xml:"componentInstance"`
	FieldInstance     *FieldInstance     `xml:"fieldInstance"`
}

ItemInstance represents an item instance in a FlexiPage region

type Template

type Template struct {
	Name       TextLiteral        `xml:"name"`
	Properties []TemplateProperty `xml:"properties"`
}

Template represents a FlexiPage template

type TemplateProperty

type TemplateProperty struct {
	Name  TextLiteral `xml:"name"`
	Value TextLiteral `xml:"value"`
}

TemplateProperty represents a template property

type VisibilityRule

type VisibilityRule struct {
	BooleanFilter *TextLiteral             `xml:"booleanFilter"`
	Criteria      []VisibilityRuleCriteria `xml:"criteria"`
}

VisibilityRule represents a visibility rule

type VisibilityRuleCriteria

type VisibilityRuleCriteria struct {
	LeftValue  TextLiteral  `xml:"leftValue"`
	Operator   TextLiteral  `xml:"operator"`
	RightValue *TextLiteral `xml:"rightValue"`
}

VisibilityRuleCriteria represents visibility rule criteria

Jump to

Keyboard shortcuts

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