20 | %hide Data.Linear.(.)
21 | %hide Text.HTML.Node.a
22 | %hide Types.SelectionMode.Select
24 | ||| Sets the `disabled` attribute of the given element
25 | ||| if the given values is not a `Valid`.
26 | |||
27 | ||| This is useful for disabling components such as buttons
28 | ||| in the UI in case of invalid user input.
37 | ||| Adjusts a widget in such a way that its input streams ends
38 | ||| as soon as one of its nodes are removed from the DOM.
39 | |||
40 | ||| This is used in utilities such as `bindEd` or `Web.Async.List`, where
41 | ||| external events decide when a node is removed from the UI.
42 | export
47 | where
53 | --------------------------------------------------------------------------------
54 | -- Text Widgets
55 | --------------------------------------------------------------------------------
57 | export
65 | ||| Adds a unique ID to the given list of attributes if it does not yet
66 | ||| already have an ID attribute, and returns the updated list plus the ID.
67 | export
79 | ||| Adds a unique ID to the given HTML node if it does not yet
80 | ||| already have an ID and returns the updated node plus its ID.
81 | |||
82 | ||| Returns `Nothing` in case the node in question is a `Raw` node
83 | ||| or a `Text` node.
84 | export
94 | ||| Sets or unsets a custom validity message at the given node plus
95 | ||| sets a custom attribute (`data-validity`).
96 | export
111 | ||| An input element that emits `String` events.
112 | export
116 | ||| A validated input element that emits events of type
117 | ||| `EditRes e`.
118 | |||
119 | ||| A custom validity message is set in case of invalid input.
120 | export
126 | export
145 | export
151 | export
155 | pure $
159 | --------------------------------------------------------------------------------
160 | -- Select Widgets
161 | --------------------------------------------------------------------------------
187 | ||| A select element displaying the values of type `v`
188 | ||| shown in the given list.
189 | |||
190 | ||| It fires events of type `t`, and uses two functions, one for
191 | ||| converting elements to events and one for displaying elements.
192 | export
205 | ||| A select element displaying the values of type `v`
206 | ||| shown in the given list.
207 | |||
208 | ||| It fires events of type `t`, and uses two functions, one for
209 | ||| converting elements to events and one for displaying elements.
210 | export
240 | --------------------------------------------------------------------------------
241 | -- Bound Editor
242 | --------------------------------------------------------------------------------
247 | %inline
251 | %inline
263 | export
277 | where
285 | logSwitch
289 | logReplaced