attr

Namespace: Bolero
Parent Module: Html

HTML attributes.

Nested types and modules

ModuleDescription
async
task

Functions and values

Function or valueDescription
accept(v)
Signature: v:obj -> Attr

Create an HTML accept attribute.

acceptCharset(v)
Signature: v:obj -> Attr

Create an HTML accept-charset attribute.

accesskey(v)
Signature: v:obj -> Attr

Create an HTML accesskey attribute.

action(v)
Signature: v:obj -> Attr

Create an HTML action attribute.

align(v)
Signature: v:obj -> Attr

Create an HTML align attribute.

allow(v)
Signature: v:obj -> Attr

Create an HTML allow attribute.

alt(v)
Signature: v:obj -> Attr

Create an HTML alt attribute.

aria name v
Signature: name:string -> v:obj -> Attr

Create an HTML aria-X attribute.

async'(v)
Signature: v:obj -> Attr

Create an HTML async attribute.

autocapitalize(v)
Signature: v:obj -> Attr

Create an HTML autocapitalize attribute.

autocomplete(v)
Signature: v:obj -> Attr

Create an HTML autocomplete attribute.

autofocus(v)
Signature: v:obj -> Attr

Create an HTML autofocus attribute.

autoplay(v)
Signature: v:obj -> Attr

Create an HTML autoplay attribute.

bgcolor(v)
Signature: v:obj -> Attr

Create an HTML bgcolor attribute.

bindRef(refBinder)
Signature: refBinder:ElementReferenceBinder -> Attr

Bind an element reference.

border(v)
Signature: v:obj -> Attr

Create an HTML border attribute.

buffered(v)
Signature: v:obj -> Attr

Create an HTML buffered attribute.

callback name value
Signature: name:string -> value:('T -> unit) -> Attr
Type parameters: 'T

Create an attribute whose value is a callback. Use this function for Blazor component attributes of type EventCallback<T>. Note: for HTML event handlers, prefer functions from the module on.

challenge(v)
Signature: v:obj -> Attr

Create an HTML challenge attribute.

charset(v)
Signature: v:obj -> Attr

Create an HTML charset attribute.

checked(v)
Signature: v:obj -> Attr

Create an HTML checked attribute.

cite(v)
Signature: v:obj -> Attr

Create an HTML cite attribute.

class(v)
Signature: v:obj -> Attr

Create an HTML class attribute.

classes(classes)
Signature: classes:string list -> Attr

Create an HTML class attribute containing the given class names.

code(v)
Signature: v:obj -> Attr

Create an HTML code attribute.

codebase(v)
Signature: v:obj -> Attr

Create an HTML codebase attribute.

color(v)
Signature: v:obj -> Attr

Create an HTML color attribute.

cols(v)
Signature: v:obj -> Attr

Create an HTML cols attribute.

colspan(v)
Signature: v:obj -> Attr

Create an HTML colspan attribute.

content(v)
Signature: v:obj -> Attr

Create an HTML content attribute.

contenteditable(v)
Signature: v:obj -> Attr

Create an HTML contenteditable attribute.

contextmenu(v)
Signature: v:obj -> Attr

Create an HTML contextmenu attribute.

controls(v)
Signature: v:obj -> Attr

Create an HTML controls attribute.

coords(v)
Signature: v:obj -> Attr

Create an HTML coords attribute.

crossorigin(v)
Signature: v:obj -> Attr

Create an HTML crossorigin attribute.

csp(v)
Signature: v:obj -> Attr

Create an HTML csp attribute.

data(v)
Signature: v:obj -> Attr

Create an HTML data attribute.

datetime(v)
Signature: v:obj -> Attr

Create an HTML datetime attribute.

decoding(v)
Signature: v:obj -> Attr

Create an HTML decoding attribute.

default(v)
Signature: v:obj -> Attr

Create an HTML default attribute.

defer(v)
Signature: v:obj -> Attr

Create an HTML defer attribute.

dir(v)
Signature: v:obj -> Attr

Create an HTML dir attribute.

dirname(v)
Signature: v:obj -> Attr

Create an HTML dirname attribute.

disabled(v)
Signature: v:obj -> Attr

Create an HTML disabled attribute.

download(v)
Signature: v:obj -> Attr

Create an HTML download attribute.

draggable(v)
Signature: v:obj -> Attr

Create an HTML draggable attribute.

dropzone(v)
Signature: v:obj -> Attr

Create an HTML dropzone attribute.

enctype(v)
Signature: v:obj -> Attr

Create an HTML enctype attribute.

for(v)
Signature: v:obj -> Attr

Create an HTML for attribute.

form(v)
Signature: v:obj -> Attr

Create an HTML form attribute.

formaction(v)
Signature: v:obj -> Attr

Create an HTML formaction attribute.

fragment name node
Signature: name:string -> node:Node -> Attr

Create an attribute whose value is an HTML fragment. Use this function for Blazor component attributes of type RenderFragment.

fragmentWith name node
Signature: name:string -> node:('?8272 -> Node) -> Attr
Type parameters: '?8272

Create an attribute whose value is a parameterized HTML fragment. Use this function for Blazor component attributes of type RenderFragment<T>.

headers(v)
Signature: v:obj -> Attr

Create an HTML headers attribute.

height(v)
Signature: v:obj -> Attr

Create an HTML height attribute.

hidden(v)
Signature: v:obj -> Attr

Create an HTML hidden attribute.

high(v)
Signature: v:obj -> Attr

Create an HTML high attribute.

href(v)
Signature: v:obj -> Attr

Create an HTML href attribute.

hreflang(v)
Signature: v:obj -> Attr

Create an HTML hreflang attribute.

httpEquiv(v)
Signature: v:obj -> Attr

Create an HTML http-equiv attribute.

icon(v)
Signature: v:obj -> Attr

Create an HTML icon attribute.

id(v)
Signature: v:obj -> Attr

Create an HTML id attribute.

importance(v)
Signature: v:obj -> Attr

Create an HTML importance attribute.

integrity(v)
Signature: v:obj -> Attr

Create an HTML integrity attribute.

ismap(v)
Signature: v:obj -> Attr

Create an HTML ismap attribute.

itemprop(v)
Signature: v:obj -> Attr

Create an HTML itemprop attribute.

key(k)
Signature: k:obj -> Attr
keytype(v)
Signature: v:obj -> Attr

Create an HTML keytype attribute.

kind(v)
Signature: v:obj -> Attr

Create an HTML kind attribute.

label(v)
Signature: v:obj -> Attr

Create an HTML label attribute.

lang(v)
Signature: v:obj -> Attr

Create an HTML lang attribute.

language(v)
Signature: v:obj -> Attr

Create an HTML language attribute.

lazyload(v)
Signature: v:obj -> Attr

Create an HTML lazyload attribute.

list(v)
Signature: v:obj -> Attr

Create an HTML list attribute.

loop(v)
Signature: v:obj -> Attr

Create an HTML loop attribute.

low(v)
Signature: v:obj -> Attr

Create an HTML low attribute.

manifest(v)
Signature: v:obj -> Attr

Create an HTML manifest attribute.

max(v)
Signature: v:obj -> Attr

Create an HTML max attribute.

maxlength(v)
Signature: v:obj -> Attr

Create an HTML maxlength attribute.

media(v)
Signature: v:obj -> Attr

Create an HTML media attribute.

method(v)
Signature: v:obj -> Attr

Create an HTML method attribute.

min(v)
Signature: v:obj -> Attr

Create an HTML min attribute.

minlength(v)
Signature: v:obj -> Attr

Create an HTML minlength attribute.

multiple(v)
Signature: v:obj -> Attr

Create an HTML multiple attribute.

muted(v)
Signature: v:obj -> Attr

Create an HTML muted attribute.

name(v)
Signature: v:obj -> Attr

Create an HTML name attribute.

novalidate(v)
Signature: v:obj -> Attr

Create an HTML novalidate attribute.

open(v)
Signature: v:obj -> Attr

Create an HTML open attribute.

optimum(v)
Signature: v:obj -> Attr

Create an HTML optimum attribute.

pattern(v)
Signature: v:obj -> Attr

Create an HTML pattern attribute.

ping(v)
Signature: v:obj -> Attr

Create an HTML ping attribute.

placeholder(v)
Signature: v:obj -> Attr

Create an HTML placeholder attribute.

poster(v)
Signature: v:obj -> Attr

Create an HTML poster attribute.

preload(v)
Signature: v:obj -> Attr

Create an HTML preload attribute.

readonly(v)
Signature: v:obj -> Attr

Create an HTML readonly attribute.

ref(f)
Signature: f:(ElementReference -> unit) -> Attr

Bind an element reference.

rel(v)
Signature: v:obj -> Attr

Create an HTML rel attribute.

required(v)
Signature: v:obj -> Attr

Create an HTML required attribute.

reversed(v)
Signature: v:obj -> Attr

Create an HTML reversed attribute.

rows(v)
Signature: v:obj -> Attr

Create an HTML rows attribute.

rowspan(v)
Signature: v:obj -> Attr

Create an HTML rowspan attribute.

sandbox(v)
Signature: v:obj -> Attr

Create an HTML sandbox attribute.

scope(v)
Signature: v:obj -> Attr

Create an HTML scope attribute.

selected(v)
Signature: v:obj -> Attr

Create an HTML selected attribute.

shape(v)
Signature: v:obj -> Attr

Create an HTML shape attribute.

size(v)
Signature: v:obj -> Attr

Create an HTML size attribute.

sizes(v)
Signature: v:obj -> Attr

Create an HTML sizes attribute.

slot(v)
Signature: v:obj -> Attr

Create an HTML slot attribute.

span(v)
Signature: v:obj -> Attr

Create an HTML span attribute.

spellcheck(v)
Signature: v:obj -> Attr

Create an HTML spellcheck attribute.

src(v)
Signature: v:obj -> Attr

Create an HTML src attribute.

srcdoc(v)
Signature: v:obj -> Attr

Create an HTML srcdoc attribute.

srclang(v)
Signature: v:obj -> Attr

Create an HTML srclang attribute.

srcset(v)
Signature: v:obj -> Attr

Create an HTML srcset attribute.

start(v)
Signature: v:obj -> Attr

Create an HTML start attribute.

step(v)
Signature: v:obj -> Attr

Create an HTML step attribute.

style(v)
Signature: v:obj -> Attr

Create an HTML style attribute.

summary(v)
Signature: v:obj -> Attr

Create an HTML summary attribute.

tabindex(v)
Signature: v:obj -> Attr

Create an HTML tabindex attribute.

target(v)
Signature: v:obj -> Attr

Create an HTML target attribute.

title(v)
Signature: v:obj -> Attr

Create an HTML title attribute.

translate(v)
Signature: v:obj -> Attr

Create an HTML translate attribute.

type(v)
Signature: v:obj -> Attr

Create an HTML type attribute.

usemap(v)
Signature: v:obj -> Attr

Create an HTML usemap attribute.

value(v)
Signature: v:obj -> Attr

Create an HTML value attribute.

width(v)
Signature: v:obj -> Attr

Create an HTML width attribute.

wrap(v)
Signature: v:obj -> Attr

Create an HTML wrap attribute.