diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-22 22:55:47 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-22 22:55:47 -0800 |
commit | 29959dc55482b04388bc0c8a426650215ac3d5b2 (patch) | |
tree | dbac01d4f6afb7473fabf6fbc9a649fc72a1a051 | |
parent | 91de4e0ad607aff54fa51914c08f357b535684b1 (diff) |
fixing docs
-rw-r--r-- | management/editor/repeaters.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/management/editor/repeaters.go b/management/editor/repeaters.go index f528894..37fb982 100644 --- a/management/editor/repeaters.go +++ b/management/editor/repeaters.go @@ -13,16 +13,16 @@ import ( // The `fieldName` argument will cause a panic if it is not exactly the string // form of the struct field that this editor input is representing // type Person struct { -// Name string `json:"name"` +// Names []string `json:"names"` // } // // func (p *Person) MarshalEditor() ([]byte, error) { // view, err := editor.Form(p, // editor.Field{ -// View: editor.InputRepeater("Name", p, map[string]string{ -// "label": "Name", +// View: editor.InputRepeater("Names", p, map[string]string{ +// "label": "Names", // "type": "text", -// "placeholder": "Enter the Name here", +// "placeholder": "Enter a Name here", // }), // } // ) |