Module

Specular.Dom.Element

Package
purescript-specular
Repository
restaumatic/purescript-specular

#el' Source

el' :: forall a r. TagName -> Array Prop -> RWidget r a -> RWidget r (Tuple Node a)

#el Source

el :: forall a r. TagName -> Array Prop -> RWidget r a -> RWidget r a

#el_ Source

el_ :: forall a r. TagName -> RWidget r a -> RWidget r a

#text Source

text :: forall r. String -> RWidget r Unit

#dynText Source

dynText :: forall r. Dynamic String -> RWidget r Unit

#attrs Source

attrs :: Attrs -> Prop

Attach static attributes to the node.

#attrsD Source

attrsD :: Dynamic Attrs -> Prop

Attach a dynamically-changing map of attributes to the node.

The set of attributes must be distinct from the attributes set by other uses of attrs or attrsD on the same element.

#attrsWhen Source

#attrsUnless Source

#ClassName Source

#class_ Source

class_ :: ClassName -> Prop

Attach a single CSS class to the element.

Note: if using this property:

  • the class attribute must not be used,
  • the provided class name must be distinct from class names used in other properties from this module.

#classes Source

classes :: Array ClassName -> Prop

Attach an array of CSS classes to the element.

Note: if using this property:

  • the class attribute must not be used,
  • the provided class names must be distinct from class names used in other properties from this module.

#classesD Source

classesD :: Dynamic (Array ClassName) -> Prop

Attach a dynamically-changing array of CSS classes to the element.

Note: if using this property:

  • the class attribute must not be used,
  • the provided class names must be distinct from class names used in other properties from this module.

#classWhenD Source

classWhenD :: Dynamic Boolean -> ClassName -> Prop

Conditionally attach a CSS class to the element. The class will be present if the condition is true.

Note: if using this property:

  • the class attribute must not be used,
  • the provided class name must be distinct from class names used in other properties from this module.

#classUnlessD Source

classUnlessD :: Dynamic Boolean -> ClassName -> Prop

classUnlessD cond = classWhenD (not cond)

Re-exports from Specular.Dom.Builder.Class

#rawHtml Source

rawHtml :: forall m. MonadDomBuilder m => String -> m Unit