Panda.HTML
- Package
- purescript-panda
- Repository
- i-am-tom/purescript-panda
#delegate Source
delegate :: forall subevent event substate state subupdate update eff. { event :: subevent -> Maybe event, state :: state -> substate, update :: update -> Maybe subupdate } -> Application eff subupdate substate subevent -> Component eff update state eventWrap an application within a component such that it can be embedded within a larger application.
Re-exports from Panda.HTML.Elements
#StaticElementWithoutProperties Source
type StaticElementWithoutProperties = forall event state update eff. Array (Component eff update state event) -> Component eff update state eventAn element with no specified properties and fixed children.
#SelfClosingElementWithoutProperties Source
type SelfClosingElementWithoutProperties = forall event state update eff. Component eff update state eventA non-container element that has no custom properties.
#SelfClosingElement Source
type SelfClosingElement = forall event state update eff. Array (Property update state event) -> Component eff update state eventAn element that, according to the HTML spec, is not a container.
#ElementWithoutProperties Source
type ElementWithoutProperties = forall event state update eff. Children eff update state event -> Component eff update state eventAn element with no specified properties.
#var Source
var :: StaticElement#ul Source
ul :: StaticElement#u Source
u :: StaticElement#tt Source
tt :: StaticElement#tr Source
tr :: StaticElement#th Source
th :: StaticElement#td Source
td :: StaticElement#sup Source
sup :: StaticElement#sub Source
sub :: StaticElement#s Source
s :: StaticElement#rt Source
rt :: StaticElement#rp Source
rp :: StaticElement#q Source
q :: StaticElement#pre Source
pre :: StaticElement#p Source
p :: StaticElement#ol Source
ol :: StaticElement#map Source
map :: StaticElement#make Source
make :: String -> StaticElement#li Source
li :: StaticElement#kbd Source
kbd :: StaticElement#ins Source
ins :: StaticElement#i Source
i :: StaticElement#h1 Source
h1 :: StaticElement#em Source
em :: StaticElement#dt Source
dt :: StaticElement#dl Source
dl :: StaticElement#div Source
div :: StaticElement#dir Source
dir :: StaticElement#dfn Source
dfn :: StaticElement#del Source
del :: StaticElement#dd Source
dd :: StaticElement#big Source
big :: StaticElement#bdo Source
bdo :: StaticElement#bdi Source
bdi :: StaticElement#b Source
b :: StaticElement#a Source
a :: StaticElementRe-exports from Panda.HTML.Watchers
#renderMaybe Source
renderMaybe :: forall value event state update eff. ({ state :: state, update :: update } -> Maybe value) -> (value -> Component eff update state event) -> Children eff update state eventGiven an update and state, maybe produce a value. If a value is produced, use this value to render a component. As with the other render methods, this will trigger a full re-render.
#renderAlways' Source
renderAlways' :: forall event state update eff. (state -> Component eff update state event) -> Children eff update state eventRegardless of the update, re-render with no interest in what the update was. Again, this will be a real performance-killer in larger applications, so use it with caution. Beyond very simple cases, it's usually a sign that something needs rethinking.
#renderAlways Source
renderAlways :: forall event state update eff. ({ state :: state, update :: update } -> Component eff update state event) -> Children eff update state eventRegardless of the update, re-render this child. NB that this is probably a bad idea within a larger application, as it will probably equate to a lot of unnecessary re-render. Consider embedding such an element within a delegate and filtering updates to improve performance.