File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ As an example, the signal can be used to show a loading indicator.
182182Elem.button [
183183 Ds.onClick (Ds.get "/fetchBigData") // make a request to the backend
184184 Ds.indicator "fetching" // the signal we are creating
185- Ds.attr' "disabled" "$fetching" // assigns the "disabled" attribute if the `fetching` signal value is true
185+ Ds.attr' ( "disabled", "$fetching") // assigns the "disabled" attribute if the `fetching` signal value is true
186186 ] [ Text.raw "Fetch!" ]
187187
188188Elem.div
@@ -223,7 +223,7 @@ Elem.div [ Ds.text "$foo" ] []
223223Binds the value of an HTML attribute to an expression.
224224
225225``` fsharp
226- Elem.div [ Ds.attr' "title" "$foo" ] []
226+ Elem.div [ Ds.attr' ( "title", "$foo") ] []
227227```
228228
229229### [ Ds.show : ` data-show ` ] ( https://data-star.dev/reference/attribute_plugins#data-show )
You can’t perform that action at this time.
0 commit comments