Function domafic::tags::sup
[−]
[src]
pub fn sup<C: DomNodes, A: AsRef<[KeyValue]>, L: Listeners<Message = C::Message>, T: Into<TagProperties<C, A, L>>>(
properties: T
) -> Tag<C, A, L>
Creates a tag of the given type.
Note the use of Into<TagProperties>
. This allows for a wide variety of input
parameters such as div(())
, div(...children...)
,
div((...attributes..., ...children..))
, div((...attributes..., ...listeners...))
and more.