From ef9d46bd9f95fa8e494693306802da6f6e23ca46 Mon Sep 17 00:00:00 2001 From: Guobiao Mei Date: Thu, 11 Feb 2016 21:55:49 -0500 Subject: [PATCH 1/3] Update doc.go Fix godoc comment so that the example there compiles. --- doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc.go b/doc.go index b80e464..af24578 100644 --- a/doc.go +++ b/doc.go @@ -19,7 +19,7 @@ A simplest example: g := ui.NewGauge() g.Percent = 50 g.Width = 50 - g.Border.Label = "Gauge" + g.BorderLabel = "Gauge" ui.Render(g) } From e61b888293a81d5b15827692c82c28342cb88f92 Mon Sep 17 00:00:00 2001 From: Christopher Simons Date: Sat, 20 Feb 2016 19:48:06 -0500 Subject: [PATCH 2/3] README.md: fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e1d41b..508f081 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use `termui`, the very first thing you may want to know is how to manage layo __Absolute layout__ -Each widget has an underlying block structure which basically is a box model. It has border, label and padding properties. A border of a widget can be chosen to hide or display (with its border label), you can pick a different front/back colour for the border as well. To display such a widget at a specific location in terminal window, you need to assign `.X`, `.Y`, `.Height`, `.Width` values for each widget before send it to `.Render`. Let's demonstrate these by a code snippet: +Each widget has an underlying block structure which basically is a box model. It has border, label and padding properties. A border of a widget can be chosen to hide or display (with its border label), you can pick a different front/back colour for the border as well. To display such a widget at a specific location in terminal window, you need to assign `.X`, `.Y`, `.Height`, `.Width` values for each widget before sending it to `.Render`. Let's demonstrate these by a code snippet: `````go import ui "github.com/gizak/termui" // <- ui shortcut, optional From 123bb5108b1a0846d57d6c61fe67c3d4c096e801 Mon Sep 17 00:00:00 2001 From: Christopher Simons Date: Sat, 20 Feb 2016 19:56:35 -0500 Subject: [PATCH 3/3] README.md: improve style consistency --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 508f081..5f327b4 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ __Grid layout:__ grid -Grid layout uses [12 columns grid system](http://www.w3schools.com/bootstrap/bootstrap_grid_system.asp) with expressive syntax. To use `Grid`, all we need to do is build a widget tree consisting of `Row`s and Cols (Actually a Col is also a `Row` but with a widget endpoint attached). +Grid layout uses [12 columns grid system](http://www.w3schools.com/bootstrap/bootstrap_grid_system.asp) with expressive syntax. To use `Grid`, all we need to do is build a widget tree consisting of `Row`s and `Col`s (Actually a `Col` is also a `Row` but with a widget endpoint attached). ```go import ui "github.com/gizak/termui"