mdicon

package
v0.0.0-...-aecb3d9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2018 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IconStyle

type IconStyle string

IconStyle is an enum for posible sizes of the md-icon

const (
	IconSmall    IconStyle = "small"    //A smaller icon. 18px
	IconBig      IconStyle = "big"      //Bigger icon. 36px
	IconDouble   IconStyle = "double"   //Double-sized icon. 48px
	IconCircle   IconStyle = "circle"   //An icon in a circle
	IconSquare   IconStyle = "square"   //An icon in a square
	IconDarkBG   IconStyle = "dark-bg"  //An icon in dark background
	IconReactive IconStyle = "reactive" //An icon respond to click and showing a ripple effect
	IconDisabled IconStyle = "disabled" //A greyed out without responsiveness*
)

posible icon sizes

type MdIcon

type MdIcon struct {
	golymer.Element
	IconStyle IconStyle
	Img       string
	// contains filtered or unexported fields
}

MdIcon is an material design icon

func (*MdIcon) ObserverIconStyle

func (i *MdIcon) ObserverIconStyle(old, new string)

ObserverIconStyle adds new icon style

func (*MdIcon) ObserverImg

func (i *MdIcon) ObserverImg(old, new string)

ObserverImg changes icon when Img is changed

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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