I'm extending the tutorial at http://vgaltes.com/suave/forms-with-suave-experimental-and-suave-forms / to support a HTML select-input/drop down list.
divAttr ["class", "editor-field"] [
input (fun f -> <@ f.Name @>) [] Forms.human
]
The problem is that divAttr
expects a Xml type, but Suave.Form.input
returns a Node
. Does anyone know how to solve this or have an example of how to do a select-input that can be added to divAttr
?
I have looked at one example of how to do this, from the Suave Music Store book. But that seems to be outdated, and not relevant to the latest version of Suave.
I'm running Suave & Suave.Experimental 2.1.0.
Thanks!
最新版本的Suave和Suave.Experimental(2.1.1)代码是div,而不是divAttr,div期望一个Node所以我相信这将解决你的问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.