flexipage

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 5 Imported by: 0

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