Expand description

Create html attributes

Macros

  • declare a function with the name corresponds to attribute name for easy usage in html elements Example:

Structs

  • A generic sized representation of a function that can be attached to a Node. The callback will essentially be owned by the element
  • The Attributes partition into 4 different types
  • css styles style can be converted into an attribute

Enums

  • Values of an attribute can be in these variants
  • Wraps different primitive variants used as values in html This is needed since html attributes can have different value types such as checked(bool), name(String), tab_index(i32)

Constants

  • These are most commonly used html attributes such as class, id, etc
  • These are html attributes with names that are non proper rust identifier therefore handled differently. ie: (for, in)

Traits

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

Functions