page_builder

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) *admin.Resource

Types

type Config

type Config struct {
	Admin       *admin.Admin
	PageModel   interface{}
	Containers  *widget.Widgets
	AdminConfig *admin.Config
}

type Container

type Container struct {
	Name string
}

type Containers

type Containers []Container

func (*Containers) Scan

func (containers *Containers) Scan(value interface{}) error

func (Containers) Value

func (containers Containers) Value() (driver.Value, error)

type Page

type Page struct {
	gorm.Model
	Title         string
	TitleWithSlug slug.Slug

	Containers Containers `sql:"type:text;"`
}

func (*Page) ConfigureQorResource

func (*Page) ConfigureQorResource(res resource.Resourcer)

func (Page) GetContainerRecords

func (page Page) GetContainerRecords(db *gorm.DB) (records []widget.QorWidgetSetting)

Jump to

Keyboard shortcuts

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