Documentation ¶
Index ¶
- func RenderClassBinding(bindings Bindings) string
- func RenderPage(page models.UIPage) (html, scripts, styles string, err error)
- func RenderShowHideBindings(bindings Bindings) string
- func WriteToFile(fileName string, content string) error
- type Animation
- type Binding
- type Bindings
- type Box
- type Button
- type ChartArea
- type ChartBar
- type ChartBubble
- type ChartDoughnut
- type ChartLine
- type ChartPie
- type ChartPolarArea
- type ChartRadar
- type ChartScatter
- type Collapsible
- type CollapsibleContent
- type CollapsibleHeaderCollapsed
- type CollapsibleHeaderOpened
- type Columns
- type DataSource
- type Event
- type EventAction
- type Extension
- type Form
- type FunctionStore
- func (fs *FunctionStore) AddChart(ChartType string, Effect string)
- func (fs *FunctionStore) AddEvents(events []Event)
- func (fs *FunctionStore) AddExtension(extension string)
- func (fs *FunctionStore) AddExtensionHead(extensionHead string)
- func (i *FunctionStore) ConvertToHTML(dataSources []interface{}, globals []string, ...) (string, error)
- type Icon
- type Image
- type Input
- type Link
- type MenuButton
- type Page
- type Picture
- type Select
- type Slider
- type StyleModes
- type StyleStore
- type SubmitButton
- type Template
- type Text
- type TextArea
- type TextSource
- type TextState
- type ValueSource
- type Video
- type VisibleAnimation
- type YouTube
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderClassBinding ¶
func RenderShowHideBindings ¶
func WriteToFile ¶
Create the file and write the content to it
Types ¶
type Box ¶
type Box struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Name string `json:"name"` As string `json:"as"` } `json:"data"` }
type Button ¶
type Button struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Text string `json:"text"` } `json:"data"` }
type ChartArea ¶
type ChartArea struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartBar ¶
type ChartBar struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartBubble ¶
type ChartBubble struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartDoughnut ¶
type ChartDoughnut struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartLine ¶
type ChartLine struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartPie ¶
type ChartPie struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartPolarArea ¶
type ChartPolarArea struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartRadar ¶
type ChartRadar struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type ChartScatter ¶
type ChartScatter struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Options struct { Plugins struct { Title struct { Text string `json:"text"` } `json:"title"` } `json:"plugins"` Scales struct { X struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"x"` Y struct { Titles struct { Text string `json:"text"` } `json:"titles"` } `json:"y"` } `json:"scales"` } `json:"options"` AxisFrom struct { X struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"x"` Y struct { ListName string `json:"listName"` PropName string `json:"propName"` } `json:"y"` } `json:"axisFrom"` } `json:"data"` }
type Collapsible ¶
type Collapsible struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` IsToggle bool `json:"isToggle"` } `json:"data"` }
type CollapsibleContent ¶
type CollapsibleContent struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` } `json:"data"` }
type CollapsibleHeaderCollapsed ¶
type CollapsibleHeaderCollapsed struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` } `json:"data"` }
Doesn't support bindings
type CollapsibleHeaderOpened ¶
type CollapsibleHeaderOpened struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` } `json:"data"` }
Doesn't support bindings
type Columns ¶
type Columns struct { Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` DefaultValue string `json:"defaultValue"` Name string `json:"name"` Placeholder string `json:"placeholder"` Required bool `json:"required"` Type string `json:"type"` Value string `json:"value"` As string `json:"as"` } `json:"data"` // contains filtered or unexported fields }
type DataSource ¶
type DataSource struct { StateName string `json:"stateName"` Url struct { Value []TextSource `json:"value"` } `json:"url"` Method string `json:"method"` Headers string `json:"headers"` Body struct { Value []TextSource `json:"value"` } `json:"body"` Id string `json:"id"` FetchOnload bool `json:"fetchOnload"` IsPrivate bool `json:"isPrivate"` OnSuccess []EventAction `json:"onSuccess"` OnError []EventAction `json:"onError"` }
type Event ¶
type Event struct { Id string `json:"id"` Kind string `json:"kind"` Actions []EventAction `json:"actions"` }
type EventAction ¶
type EventAction struct { Id string `json:"id"` Kind string `json:"kind"` StateName ValueSource `json:"stateName"` Code string `json:"code"` Key ValueSource `json:"key"` Value ValueSource `json:"value"` ValueToSet string `json:"valueToSet"` DataSourceName string `json:"dataSourceName"` Body string `json:"body"` Params string `json:"params"` To struct { Value []TextState `json:"value"` } `json:"to"` AnimationName string `json:"animationName"` Target map[string]interface{} `json:"target"` AnimationOptions map[string]interface{} }
type Extension ¶
type Extension struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` // UserInputs map[string]struct { // Value []TextState `json:"value"` // } `json:"userInputs"` UserInputs map[string]interface{} `json:"userInputs"` Extension struct { Name string `json:"name"` Content struct { Html string `json:"html"` Init string `json:"init"` Action string `json:"action"` Update string `json:"update"` Head string `json:"head"` } `json:"content"` } `json:"extension"` As string `json:"as"` } `json:"data"` }
type Form ¶
type Form struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Text string `json:"text"` DataSourceName string `json:"dataSourceName"` } `json:"data"` }
type FunctionStore ¶
type FunctionStore struct { Events []Event Script []string // These are scripts that run inside a document.AddEventListener('alpine:init', function() { ... }) ChartTypes map[string]bool // These are the chart types that are used in the page. We use this to know which renderChart functions to include Extensions []string // These are the functions of the extensions and each of them run inside a separate document.AddEventListener('alpine:init', function() { ... }) ExtensionHeads []string // Each extension can have a head section that is added to the page. This holds the content of those heads. Animations map[string]Animation // contains filtered or unexported fields }
func NewFunctionStore ¶
func NewFunctionStore(animations []interface{}) (FunctionStore, error)
func (*FunctionStore) AddChart ¶
func (fs *FunctionStore) AddChart(ChartType string, Effect string)
func (*FunctionStore) AddEvents ¶
func (fs *FunctionStore) AddEvents(events []Event)
func (*FunctionStore) AddExtension ¶
func (fs *FunctionStore) AddExtension(extension string)
func (*FunctionStore) AddExtensionHead ¶
func (fs *FunctionStore) AddExtensionHead(extensionHead string)
func (*FunctionStore) ConvertToHTML ¶
func (i *FunctionStore) ConvertToHTML(dataSources []interface{}, globals []string, statesDefaultValues map[string]interface{}) (string, error)
type Icon ¶
type Icon struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Name string `json:"name"` Type string `json:"type"` } `json:"data"` }
type Image ¶
type Image struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Alt string `json:"alt"` Src struct { Value []TextSource `json:"value"` } `json:"src"` } `json:"data"` }
type Input ¶
type Input struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` DefaultValue string `json:"defaultValue"` Name string `json:"name"` Placeholder string `json:"placeholder"` Required bool `json:"required"` Type string `json:"type"` Value string `json:"value"` } `json:"data"` }
type Link ¶
type Link struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Href struct { Value []TextSource } `json:"href"` OpenInNewTab bool `json:"openInNewTab"` } `json:"data"` }
type MenuButton ¶
type MenuButton struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` MenuId string `json:"menuId"` // This is not even used } `json:"data"` }
type Picture ¶
type Picture struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Alt string `json:"alt"` DesktopSrc string `json:"desktopSrc"` TabletSrc string `json:"tabletSrc"` MobileSrc string `json:"mobileSrc"` } `json:"data"` }
type Select ¶
type Select struct { Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` DefaultValue string `json:"defaultValue"` Name string `json:"name"` Placeholder string `json:"placeholder"` Required bool `json:"required"` Type string `json:"type"` Value string `json:"value"` Multiple bool `json:"multiple"` Options []struct { Label string `json:"label"` Value string `json:"value"` } `json:"options"` } `json:"data"` // contains filtered or unexported fields }
type Slider ¶
type Slider struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Name string `json:"name"` } `json:"data"` }
type StyleModes ¶
type StyleStore ¶
type StyleStore struct { DesktopStyles map[string]StyleModes TabletStyles map[string]StyleModes MobileStyles map[string]StyleModes CustomDesktopStyles map[string]map[string]map[string]string CustomTabletStyles map[string]map[string]map[string]string CustomMobileStyles map[string]map[string]map[string]string // contains filtered or unexported fields }
func NewStyleStore ¶
func NewStyleStore() StyleStore
func (*StyleStore) AddCustomStyle ¶
func (i *StyleStore) AddCustomStyle(id string, desktopStyles, tabletStyles, mobileStyles map[string]map[string]string)
func (*StyleStore) AddStyle ¶
func (i *StyleStore) AddStyle(id string, desktopStyles, tabletStyles, mobileStyles StyleModes)
Add the functionality to add new imports to the import store
func (*StyleStore) ConvertToHTML ¶
func (i *StyleStore) ConvertToHTML(classNames map[string]interface{}) (string, error)
type SubmitButton ¶
type SubmitButton struct { Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Text string `json:"text"` } `json:"data"` // contains filtered or unexported fields }
type Template ¶
type Template struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Name string `json:"name"` } `json:"data"` }
type Text ¶
type Text struct { Kind string `json:"type"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Text struct { Value []TextSource `json:"value"` } `json:"text"` As string `json:"as"` Raw bool `json:"raw"` } `json:"data"` }
type TextArea ¶
type TextArea struct { Id string `json:"id"` Components []interface{} `json:"components"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Bindings Bindings `json:"bindings"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` DefaultValue string `json:"defaultValue"` Name string `json:"name"` Placeholder string `json:"placeholder"` Required bool `json:"required"` Type string `json:"type"` Value string `json:"value"` Rows string `json:"rows"` Cols string `json:"cols"` } `json:"data"` // contains filtered or unexported fields }
type TextSource ¶
type ValueSource ¶
type Video ¶
type Video struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Src string `json:"src"` Poster string `json:"poster"` Controls bool `json:"controls"` Autoplay bool `json:"autoplay"` Loop bool `json:"loop"` Muted bool `json:"muted"` } `json:"data"` }
type VisibleAnimation ¶
type YouTube ¶
type YouTube struct { Kind string `json:"kind"` Id string `json:"id"` Components []interface{} `json:"components"` Events []Event `json:"events"` Bindings Bindings `json:"bindings"` RepeatFrom struct { Name string Iterator string } `json:"repeatFrom"` ClassNames []string `json:"classNames"` ElementId string `json:"elementId"` Data struct { Style struct { Desktop StyleModes `json:"desktop"` Tablet StyleModes `json:"tablet"` Mobile StyleModes `json:"mobile"` } `json:"style"` CustomStyle struct { Desktop map[string]map[string]string `json:"desktop"` Tablet map[string]map[string]string `json:"tablet"` Mobile map[string]map[string]string `json:"mobile"` } `json:"customStyle"` Src string `json:"src"` } `json:"data"` }
Source Files ¶
- convert_box.go
- convert_button.go
- convert_chart_area.go
- convert_chart_bar.go
- convert_chart_bubble.go
- convert_chart_doughnut.go
- convert_chart_line.go
- convert_chart_pie.go
- convert_chart_polararea.go
- convert_chart_radar.go
- convert_chart_scatter.go
- convert_collapsible.go
- convert_collapsible_content.go
- convert_collapsible_header_collapsed.go
- convert_collapsible_header_opened.go
- convert_columns.go
- convert_extension.go
- convert_fonts.go
- convert_form.go
- convert_icon.go
- convert_image.go
- convert_input.go
- convert_link.go
- convert_menue_button.go
- convert_nav_menu.go
- convert_navbar.go
- convert_picture.go
- convert_select.go
- convert_slider.go
- convert_state_default_values.go
- convert_submit_button.go
- convert_template.go
- convert_text.go
- convert_text_area.go
- convert_video.go
- convert_youtube.go
- convertor.go
- file_utils.go
- function_store.go
- render_page.go
- scriptsconvert_charts.go
- scriptsconvert_data_sources.go
- scriptsconvert_effects.go
- scriptsconvert_event.go
- style_store.go
- types.go
Click to show internal directories.
Click to hide internal directories.