Module

Data.DotLang.Attr.Node

Package
purescript-dotlang
Repository
csicar/purescript-dotlang

#RecordLabelValue Source

#htmlLabel Source

htmlLabel :: String -> Attr
> import Data.DotLang.Attr.Node
> :t htmlLabel "<table><tr><td>Label</td></tr></table>"
Attr

htmlLabel as a part of an attribute of a node.

#label Source

label :: String -> Attr
> import Data.DotLang.Attr.Node
> :t label "..." 
Attr

label as a part of an attribute of a node.

#recordLabel Source

recordLabel :: Array { fieldId :: Maybe String, value :: RecordLabelValue } -> Attr
> import Data.DotLang
> import Data.DotLang.Class (toText)
> toText $ node "a" [recordLabel [subId "test" $ subLabel "c", subLabel "d", subRecord [ subLabel "k", subLabel "l"]]]
"a [label=\"{<test>c} | {d} | {{k} | {l}}\"]; "

#subRecord Source

subRecord :: Array { fieldId :: Maybe String, value :: RecordLabelValue } -> { fieldId :: Maybe String, value :: RecordLabelValue }

#subLabel Source

subLabel :: String -> { fieldId :: Maybe String, value :: RecordLabelValue }

#subId Source

subId :: String -> { fieldId :: Maybe String, value :: RecordLabelValue } -> { fieldId :: Maybe String, value :: RecordLabelValue }