[][src]Module sauron::prelude::html::attributes

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes

Structs

Style

css styles style can be converted into an attribute ie:

Enums

AttributeValue

Values of an attribute can be in these variants

Value

TODO: merge this with AttributeValue Value is an abstraction of the values used in the actual backend. Html and gtk-rs have different set of compatible values therefore a need for a storage of these intermediate value is needed

Traits

Special

Special Node attributes that are treated differently such as key and skip which both greatly affects the diffing algorithm

Functions

accept

Creates html accept attribute

accept_charset

Creates html accept-charset attribute

accesskey

Creates html accesskey attribute

action

Creates html action attribute

align

Creates html align attribute

allow

Creates html allow attribute

alt

Creates html alt attribute

async

Creates html async attribute

async_

Creates html async attribute

attr

a utility function to convert simple value into attribute

attrs_flag

A helper function for setting attributes with no values such as checked in checkbox input type This is best called to be appended to the node since this returns an array of attributes which doesn't play well with the others Example:

autocapitalize

Creates html autocapitalize attribute

autocomplete

Creates html autocomplete attribute

autofocus

Creates html autofocus attribute

autoplay

Creates html autoplay attribute

background

Creates html background attribute

bgcolor

Creates html bgcolor attribute

border

Creates html border attribute

buffered

Creates html buffered attribute

challenge

Creates html challenge attribute

charset

Creates html charset attribute

checked

set the checked value, used checkbox and radio buttons

cite

Creates html cite attribute

class

Creates html class attribute

classes

a helper function to add multiple classes to a node

classes_flag
codebase

Creates html codebase attribute

color

Creates html color attribute

cols

Creates html cols attribute

colspan

Creates html colspan attribute

content

Creates html content attribute

contenteditable

Creates html contenteditable attribute

contextmenu

Creates html contextmenu attribute

controls

Creates html controls attribute

coords

Creates html coords attribute

crossorigin

Creates html crossorigin attribute

csp

Creates html csp attribute

data

Creates html data attribute

datetime

Creates html datetime attribute

decoding

Creates html decoding attribute

default

Creates html default attribute

defer

Creates html defer attribute

dir

Creates html dir attribute

dirname

Creates html dirname attribute

disabled

set whether an element is disabled or not

download

Creates html download attribute

draggable

Creates html draggable attribute

dropzone

Creates html dropzone attribute

empty_attr

a utility function to return create an empty attr, useful for cases where branch expression need to return an attribute which otherwise it can not produce example:

enctype

Creates html enctype attribute

enterkeyhint

Creates html enterkeyhint attribute

flex_direction

Creates html flex-direction attribute

focus

focus the html element

font_family

Creates html font-family attribute

font_size

Creates html font-size attribute

for

Creates html for attribute

for_

Creates html for attribute

formaction

Creates html formaction attribute

formnovalidate

Creates html formnovalidate attribute

headers

Creates html headers attribute

height

Creates html height attribute

hidden

Creates html hidden attribute

high

Creates html high attribute

href

Creates html href attribute

hreflang

Creates html hreflang attribute

http

Creates html http attribute

icon

Creates html icon attribute

id

Creates html id attribute

importance

Creates html importance attribute

inner_html

set the inner html of this element without comparing in the diff this always sets the value This is for optimization purposes and will lead to some hacks in the implementation

inputmode

Creates html inputmode attribute

integrity

Creates html integrity attribute

intrinsicsize

Creates html intrinsicsize attribute

ismap

Creates html ismap attribute

itemprop

Creates html itemprop attribute

key

key attributes is used to match old element and new element when diffing

keytype

Creates html keytype attribute

kind

Creates html kind attribute

lang

Creates html lang attribute

language

Creates html language attribute

list

Creates html list attribute

loading

Creates html loading attribute

loop

Creates html loop attribute

loop_

Creates html loop attribute

low

Creates html low attribute

manifest

Creates html manifest attribute

max

Creates html max attribute

maxlength

Creates html maxlength attribute

media

Creates html media attribute

method

Creates html method attribute

min

Creates html min attribute

minlength

Creates html minlength attribute

multiple

Creates html multiple attribute

muted

Creates html muted attribute

name

Creates html name attribute

novalidate

Creates html novalidate attribute

open

Creates html open attribute

optimum

Creates html optimum attribute

pattern

Creates html pattern attribute

ping

Creates html ping attribute

placeholder

Creates html placeholder attribute

poster

Creates html poster attribute

preload

Creates html preload attribute

radiogroup

Creates html radiogroup attribute

readonly

Creates html readonly attribute

referrerpolicy

Creates html referrerpolicy attribute

rel

Creates html rel attribute

replace

if the value is true, then this node is made to replace the old node it matches

required

Creates html required attribute

reversed

Creates html reversed attribute

rows

Creates html rows attribute

rowspan

Creates html rowspan attribute

sandbox

Creates html sandbox attribute

scope

Creates html scope attribute

scoped

Creates html scoped attribute

selected

Creates html selected attribute

shape

Creates html shape attribute

size

Creates html size attribute

sizes

Creates html sizes attribute

skip

if the value is true, then the diffing of this element and its descendants are skip entirely

slot

Creates html slot attribute

spellcheck

Creates html spellcheck attribute

src

Creates html src attribute

srcdoc

Creates html srcdoc attribute

srclang

Creates html srclang attribute

srcset

Creates html srcset attribute

start

Creates html start attribute

step

Creates html step attribute

style

create a style attribute

styles

A helper function which creates a style attribute by assembling the tuples into a string for the style value.

styles_flag

A helper function which creates a style attribute by assembling only the parts that passed the boolean flag

styles_values

A helper function to build styles by accepting pairs

summary

Creates html summary attribute

tabindex

Creates html tabindex attribute

target

Creates html target attribute

title

Creates html title attribute

translate

Creates html translate attribute

type

Creates html type attribute

type_

Creates html type attribute

usemap

Creates html usemap attribute

value

Creates html value attribute

width

Creates html width attribute

wrap

Creates html wrap attribute