@@ -3,7 +3,7 @@ module Beta.DOM.HTML.Textarea (textarea) where
33import Prelude
44
55import Beta.DOM.Attributes (BaseAttributesR)
6−import Beta.DOM.Internal (FFIComponent, createBuiltinElement)
6+import Beta.DOM.Internal (FFIComponent_, createBuiltinElement_)
77
88-- | The `<textarea>` HTML element represents a multi-line plain-text editing control.
99-- |
@@ -19,10 +19,23 @@ import Beta.DOM.Internal (FFIComponent, createBuiltinElement)
1919-- | |---------|--------|------------------|-------------|
2020-- | | `cols` | Int | 50 | Specifies the visible width |
2121-- | | `rows` | Int | 5 | Specifies the visible number of lines |
22−textarea :: FFIComponent TextareaAttributes
23−textarea = createBuiltinElement "textarea"
22+textarea :: FFIComponent_ TextareaAttributes
23+textarea = createBuiltinElement_ "textarea"
2424
2525type TextareaAttributes = BaseAttributesR
2626 ( cols :: Int
2727 , rows :: Int
28− )
28+ , value :: String
29+ , defaultValue :: String
30+ , autoComplete :: String
31+ , autoFocus :: Boolean
32+ , disabled :: Boolean
33+ , form :: String
34+ , maxLength :: Int
35+ , minLength :: Int
36+ , name :: String
37+ , placeholder :: String
38+ , readOnly :: Boolean
39+ , required :: Boolean
40+ , wrap :: String
41+ )