this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

minor docs tweaks

+11 -16
+1
formz/TODO.md
··· 1 + - document the formz_x modules beter. add guide for writing a form generator. 1 2 - better error messages. include field name? 2 3 - form sets 3 4 - csrf token?
+1 -1
formz/src/formz.gleam
··· 59 59 //// <tr> 60 60 //// <td>Accessing and manipulating config for a form item</td> 61 61 //// <td> 62 - //// <a href="#update_field">update_field</a><br> 62 + //// <a href="#update_config">update_config</a><br> 63 63 //// <a href="#set_name">set_name</a><br> 64 64 //// <a href="#set_label">set_label</a><br> 65 65 //// <a href="#set_help_text">set_help_text</a><br>
+3 -5
formz_lustre/src/formz_lustre/widget.gleam
··· 1 1 //// The goal of a "widget" in `formz` is to produce an HTML input like 2 - //// `<input>`, `<select>`, or `<textarea>`. In a [`Definition`](https://hexdocs.pm/formz/formz/definition.html), 2 + //// `<input>`, `<select>`, or `<textarea>`. In a formz `Definition` 3 3 //// a widget can be any Gleam type, and it's up to the form generator being 4 4 //// used to know the exact type you need. 5 5 //// 6 - //// That said, in the bundled form generators a widget is a function that 7 - //// takes the details of a field and some render time arguments that the form 8 - //// generator needs to construct an input. This module is for those form 9 - //// generators, and it's use is optional if you have different needs. 6 + //// In this generator, the widget is either a function that takes the details 7 + //// and state of a field, or a special value for a hidden field. 10 8 11 9 import formz 12 10 import gleam/list
+3 -5
formz_nakai/src/formz_nakai/widget.gleam
··· 1 1 //// The goal of a "widget" in `formz` is to produce an HTML input like 2 - //// `<input>`, `<select>`, or `<textarea>`. In a [`Definition`](https://hexdocs.pm/formz/formz/definition.html), 2 + //// `<input>`, `<select>`, or `<textarea>`. In a formz `Definition` 3 3 //// a widget can be any Gleam type, and it's up to the form generator being 4 4 //// used to know the exact type you need. 5 5 //// 6 - //// That said, in the bundled form generators a widget is a function that 7 - //// takes the details of a field and some render time arguments that the form 8 - //// generator needs to construct an input. This module is for those form 9 - //// generators, and it's use is optional if you have different needs. 6 + //// In this generator, the widget is either a function that takes the details 7 + //// and state of a field, or a special value for a hidden field. 10 8 11 9 import formz 12 10 import gleam/list
+3 -5
formz_string/src/formz_string/widget.gleam
··· 1 1 //// The goal of a "widget" in `formz` is to produce an HTML input like 2 - //// `<input>`, `<select>`, or `<textarea>`. In a [`Definition`](https://hexdocs.pm/formz/formz/definition.html), 2 + //// `<input>`, `<select>`, or `<textarea>`. In a formz `Definition` 3 3 //// a widget can be any Gleam type, and it's up to the form generator being 4 4 //// used to know the exact type you need. 5 5 //// 6 - //// That said, in the bundled form generators a widget is a function that 7 - //// takes the details of a field and some render time arguments that the form 8 - //// generator needs to construct an input. This module is for those form 9 - //// generators, and it's use is optional if you have different needs. 6 + //// In this generator, the widget is either a function that takes the details 7 + //// and state of a field, or a special value for a hidden field. 10 8 11 9 import formz 12 10 import gleam/list