hyperbole-0.5.0: Interactive HTML apps using type-safe serverside Haskell
Safe HaskellSafe-Inferred
LanguageGHC2021

Web.Hyperbole.View.CSS

Synopsis

Documentation

whenLoading :: Styleable h => (CSS h -> CSS h) -> CSS h -> CSS h Source #

Apply CSS only when a request is in flight. See Example.Page.Contact

contactEditView :: User -> View Contact ()
contactEditView u = do
  el contactLoading ~ display None . whenLoading flexCol
  el (contactEdit View Save u) ~ whenLoading (display None)

disabled :: Styleable h => CSS h -> CSS h Source #

loading :: Styleable h => CSS h -> CSS h Source #