Module

Web.Chain.HTML

Package
purescript-web-chain
Repository
david-sledge/purescript-web-chain

Functions for specific types of HTML elements.

#button Source

button :: forall m f1 f2 a. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (m Node) -> Maybe (HTMLButtonElement -> Event -> Effect a) -> m HTMLButtonElement

Create a button.

#checkbox Source

checkbox :: forall m f a. MonadEffect m => Foldable f => f (String /\ String) -> Boolean -> Maybe (HTMLInputElement -> Event -> Effect a) -> m HTMLInputElement

Create a checkbox.

#div Source

div :: forall m f1 f2. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (m Node) -> m HTMLDivElement

#docBody Source

docBody :: forall m. MonadEffect m => m HTMLBodyElement

#maxLen Source

maxLen :: forall m e. MonadEffect m => ElementOp e => m e -> m (Maybe Int)

Get the max length setting.

#minLen Source

minLen :: forall m e. MonadEffect m => ElementOp e => m e -> m Int

Get the min length setting.

#numberField Source

numberField :: forall m f. MonadEffect m => Foldable f => f (String /\ String) -> Maybe Number -> m HTMLInputElement

Create a plain ol' input field of type number with a default value.

#passwordField Source

passwordField :: forall m f. MonadEffect m => Foldable f => f (String /\ String) -> m HTMLInputElement

Create a password text field.

#setAutocomplete Source

setAutocomplete :: forall m. MonadEffect m => String -> m HTMLInputElement -> m HTMLInputElement

Set whether autocomplete is enabled for an input. The input is returned.

#setLenLimits Source

setLenLimits :: forall m e. MonadEffect m => ElementOp e => Int -> Maybe Int -> m e -> m e

Set the the range limits on the required number of characters of a text field. The text field is returned.

#singleSelect Source

singleSelect :: forall m f1 f2. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (SelectContent) -> Maybe String -> m HTMLSelectElement

#span Source

span :: forall m f1 f2. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (m Node) -> m HTMLSpanElement

#table Source

table :: forall m f1 f2. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (m Node) -> m HTMLTableElement

#td Source

td :: forall m f1 f2. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (m Node) -> m HTMLTableCellElement

#textField Source

textField :: forall m f. MonadEffect m => Foldable f => f (String /\ String) -> String -> m HTMLInputElement

Create a plain ol' input field of type text with a default value.

#th Source

th :: forall m f1 f2. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (m Node) -> m HTMLTableCellElement

#tr Source

tr :: forall m f1 f2. MonadEffect m => Foldable f1 => Foldable f2 => f1 (String /\ String) -> f2 (m Node) -> m HTMLTableRowElement