bulpherjs

package module
v0.0.0-...-25b1d33 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 3 Imported by: 0

README

BulpherJS

bulma for GopherJS.

Installation

BulpherJS made primarily for applications that is using Go modules. So installation would be as simple as:

go get -u go.dev.pztrn.name/bulpherjs

Usage

See examples.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	HTML *elements.HTML
	// contains filtered or unexported fields
}

Application is a controlling structure for whole application.

func NewApplication

func NewApplication(opts *ApplicationOptions) *Application

NewApplication creates new BulpherJS application.

func (*Application) Build

func (a *Application) Build()

Build builds HTML for application.

func (*Application) SetStartFunction

func (a *Application) SetStartFunction(f func(*Application))

SetStartFunction sets start function which will be executed on app's Start() call.

func (*Application) SetTitle

func (a *Application) SetTitle(title string)

SetTitle sets passed title as page title.

func (*Application) Start

func (a *Application) Start()

Start starts application execution.

type ApplicationOptions

type ApplicationOptions struct {
	// Bulma is a Bulma CSS framework specific options.
	Bulma *BulmaOptions
	// Name is an application name as shown in title.
	Name string
}

ApplicationOptions is a structure which holds application's options.

type BulmaOptions

type BulmaOptions struct {
	// Version is a version of bulma to use. Warning: incorrectly set
	// version might break your application.
	Version string
}

BulmaOptions is a structure that controls everything related to Bulma CSS framework.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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