IHP Api Reference
Safe HaskellNone

IHP.Job.Dashboard.View

Description

 
Synopsis

Documentation

data SomeView where Source #

Provides a type-erased view. This allows us to specify a view as a return type without needed to know exactly what type the view will be, which in turn allows for custom implmentations of almost all the view functions in this module. Go GADTs!

Constructors

SomeView :: forall a. View a => a -> SomeView 

Instances

Instances details
View SomeView Source #

Since the only constructor for SomeView requires that it is passed a View, we can use that to implement a View instance for SomeView

Instance details

Defined in IHP.Job.Dashboard.View

data EmptyView Source #

A view containing no data. Used occasionally as a default implementation for some functions.

Constructors

EmptyView 

Instances

Instances details
View EmptyView Source # 
Instance details

Defined in IHP.Job.Dashboard.View

newtype HtmlView Source #

A view constructed from some HTML.

Constructors

HtmlView Html 

Instances

Instances details
View HtmlView Source # 
Instance details

Defined in IHP.Job.Dashboard.View

renderStatus :: (HasField "lastError" model (Maybe value), HasField "status" model JobStatus, ApplyAttribute value, IsString value) => model -> Html Source #

renderNewBaseJobLink :: Text -> Html Source #

Link included in table to create a new job.

makeListPageFromTableViewable :: forall a. (TableViewable a, ?context :: ControllerContext, ?modelContext :: ModelContext) => Int -> Int -> IO SomeView Source #

Orphan instances

View a => View [a] Source #

Define how to render a list of views as a view. Just concatenate them together!

Instance details

Methods

beforeRender :: [a] -> IO () Source #

html :: [a] -> Html Source #

json :: [a] -> Value Source #