Instance Methodsliemeobn.elementary 0.5.0Elementary
attributes(_:when:)
Adds the specified attribute to the element.
func attributes(_ attribute: HTMLAttribute<Tag>, when condition: Bool = true) -> _AttributedElement<Self>
Parameters
Returns
A new element with the specified attribute added.