Text
Basic example
form.NewFieldText("Name")<form action="" method="POST" >
<div >
<input id="form-name" name="form[Name]" value="" type="text" >
</div>
</form>Fully featured example
form.NewFieldText("Name").
WithOptions(
form.NewOption("label", "Name"),
form.NewOption("required", true),
form.NewOption("attr", map[string]string{"data-foo": "foo"}),
form.NewOption("row_attr", map[string]string{"data-bar": "bar"}),
)<form action="" method="POST" >
<div data-bar="bar">
<label for="form-name" >Name</label>
<input id="form-name" required="required" name="form[Name]" value="" type="text" data-foo="foo">
</div>
</form>