Default classes for implemented elements.

This commit is contained in:
2020-03-21 22:16:30 +05:00
parent cc5c1a3e20
commit 5d2d29a61d
5 changed files with 47 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ func main() {
}
func constructBody() {
mainSection := elements.NewSection(&elements.SectionOptions{Class: "section"})
mainSection := elements.NewSection(nil)
mainDiv := elements.NewDiv(&elements.DivOptions{
Class: "container",
@@ -40,7 +40,7 @@ func constructBody() {
columnsDiv.AddChild(centerDiv)
startTestButton := elements.NewButton(&elements.ButtonOptions{
Class: "button is-large is-rounded is-primary",
Class: "is-large is-rounded is-primary",
ID: "main_button",
Text: "Click Me!",
OnClickHandler: func(e *js.Object) {