/
Bgcolor.purs
47 lines (34 loc) · 1.6 KB
/
Bgcolor.purs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module Deku.DOM.Attr.Bgcolor where
import Prelude
import Deku.DOM.Elt.Body (Body_)
import Deku.DOM.Elt.Col (Col_)
import Deku.DOM.Elt.Colgroup (Colgroup_)
import Deku.DOM.Elt.Table (Table_)
import Deku.DOM.Elt.Tbody (Tbody_)
import Deku.DOM.Elt.Tfoot (Tfoot_)
import Deku.DOM.Elt.Td (Td_)
import Deku.DOM.Elt.Th (Th_)
import Deku.DOM.Elt.Tr (Tr_)
import Deku.Attribute (class Attr, prop', unsafeAttribute, unset')
data Bgcolor = Bgcolor
instance Attr Body_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Col_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Colgroup_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Table_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Tbody_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Tfoot_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Td_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Th_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr Tr_ Bgcolor String where
attr Bgcolor value = unsafeAttribute { key: "bgcolor", value: prop' value }
instance Attr everything Bgcolor Unit where
attr Bgcolor _ = unsafeAttribute
{ key: "bgcolor", value: unset' }