sycamore::web

Trait GlobalProps

pub trait GlobalProps:
    Sized
    + GlobalAttributes
    + AsHtmlNode {
    // Provided methods
    fn dangerously_set_inner_html(
        self,
        inner_html: impl Into<Cow<'static, str>>,
    ) -> Self { ... }
    fn children(self, children: impl Into<View>) -> Self { ... }
    fn ref(self, noderef: NodeRef) -> Self { ... }
    fn spread(self, attributes: Attributes) -> Self { ... }
}
Expand description

Props that are available on all elements.

Provided Methods§

fn dangerously_set_inner_html( self, inner_html: impl Into<Cow<'static, str>>, ) -> Self

Set the inner html of an element.

fn children(self, children: impl Into<View>) -> Self

Set the children of an element.

fn ref(self, noderef: NodeRef) -> Self

Set a NodeRef on this element.

fn spread(self, attributes: Attributes) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl GlobalProps for CustomElement

§

impl GlobalProps for HtmlA

§

impl GlobalProps for HtmlAbbr

§

impl GlobalProps for HtmlAddress

§

impl GlobalProps for HtmlArea

§

impl GlobalProps for HtmlArticle

§

impl GlobalProps for HtmlAside

§

impl GlobalProps for HtmlAudio

§

impl GlobalProps for HtmlB

§

impl GlobalProps for HtmlBase

§

impl GlobalProps for HtmlBdi

§

impl GlobalProps for HtmlBdo

§

impl GlobalProps for HtmlBlockquote

§

impl GlobalProps for HtmlBody

§

impl GlobalProps for HtmlBr

§

impl GlobalProps for HtmlButton

§

impl GlobalProps for HtmlCanvas

§

impl GlobalProps for HtmlCaption

§

impl GlobalProps for HtmlCite

§

impl GlobalProps for HtmlCode

§

impl GlobalProps for HtmlCol

§

impl GlobalProps for HtmlColgroup

§

impl GlobalProps for HtmlData

§

impl GlobalProps for HtmlDatalist

§

impl GlobalProps for HtmlDd

§

impl GlobalProps for HtmlDel

§

impl GlobalProps for HtmlDetails

§

impl GlobalProps for HtmlDfn

§

impl GlobalProps for HtmlDialog

§

impl GlobalProps for HtmlDiv

§

impl GlobalProps for HtmlDl

§

impl GlobalProps for HtmlDt

§

impl GlobalProps for HtmlEm

§

impl GlobalProps for HtmlEmbed

§

impl GlobalProps for HtmlFieldset

§

impl GlobalProps for HtmlFigcaption

§

impl GlobalProps for HtmlFigure

§

impl GlobalProps for HtmlFooter

§

impl GlobalProps for HtmlForm

§

impl GlobalProps for HtmlH1

§

impl GlobalProps for HtmlH2

§

impl GlobalProps for HtmlH3

§

impl GlobalProps for HtmlH4

§

impl GlobalProps for HtmlH5

§

impl GlobalProps for HtmlH6

§

impl GlobalProps for HtmlHead

§

impl GlobalProps for HtmlHeader

§

impl GlobalProps for HtmlHgroup

§

impl GlobalProps for HtmlHr

§

impl GlobalProps for HtmlHtml

§

impl GlobalProps for HtmlI

§

impl GlobalProps for HtmlIframe

§

impl GlobalProps for HtmlImg

§

impl GlobalProps for HtmlInput

§

impl GlobalProps for HtmlIns

§

impl GlobalProps for HtmlKbd

§

impl GlobalProps for HtmlKeygen

§

impl GlobalProps for HtmlLabel

§

impl GlobalProps for HtmlLegend

§

impl GlobalProps for HtmlLi

§

impl GlobalProps for HtmlMain

§

impl GlobalProps for HtmlMap

§

impl GlobalProps for HtmlMark

§

impl GlobalProps for HtmlMenu

§

impl GlobalProps for HtmlMenuitem

§

impl GlobalProps for HtmlMeta

§

impl GlobalProps for HtmlMeter

§

impl GlobalProps for HtmlNav

§

impl GlobalProps for HtmlNoscript

§

impl GlobalProps for HtmlObject

§

impl GlobalProps for HtmlOl

§

impl GlobalProps for HtmlOptgroup

§

impl GlobalProps for HtmlOption

§

impl GlobalProps for HtmlOutput

§

impl GlobalProps for HtmlP

§

impl GlobalProps for HtmlParam

§

impl GlobalProps for HtmlPicture

§

impl GlobalProps for HtmlPre

§

impl GlobalProps for HtmlProgress

§

impl GlobalProps for HtmlQ

§

impl GlobalProps for HtmlRp

§

impl GlobalProps for HtmlRt

§

impl GlobalProps for HtmlRuby

§

impl GlobalProps for HtmlS

§

impl GlobalProps for HtmlSamp

§

impl GlobalProps for HtmlScript

§

impl GlobalProps for HtmlSection

§

impl GlobalProps for HtmlSelect

§

impl GlobalProps for HtmlSmall

§

impl GlobalProps for HtmlSource

§

impl GlobalProps for HtmlSpan

§

impl GlobalProps for HtmlStrong

§

impl GlobalProps for HtmlStyle

§

impl GlobalProps for HtmlSub

§

impl GlobalProps for HtmlSummary

§

impl GlobalProps for HtmlSup

§

impl GlobalProps for HtmlTable

§

impl GlobalProps for HtmlTbody

§

impl GlobalProps for HtmlTd

§

impl GlobalProps for HtmlTemplate

§

impl GlobalProps for HtmlTextarea

§

impl GlobalProps for HtmlTfoot

§

impl GlobalProps for HtmlTh

§

impl GlobalProps for HtmlThead

§

impl GlobalProps for HtmlTime

§

impl GlobalProps for HtmlTitle

§

impl GlobalProps for HtmlTr

§

impl GlobalProps for HtmlTrack

§

impl GlobalProps for HtmlU

§

impl GlobalProps for HtmlUl

§

impl GlobalProps for HtmlVar

§

impl GlobalProps for HtmlVideo

§

impl GlobalProps for HtmlWbr

§

impl GlobalProps for SvgAnimate

§

impl GlobalProps for SvgAnimateMotion

§

impl GlobalProps for SvgAnimateTransform

§

impl GlobalProps for SvgCircle

§

impl GlobalProps for SvgClipPath

§

impl GlobalProps for SvgDefs

§

impl GlobalProps for SvgDesc

§

impl GlobalProps for SvgDiscard

§

impl GlobalProps for SvgEllipse

§

impl GlobalProps for SvgFeBlend

§

impl GlobalProps for SvgFeColorMatrix

§

impl GlobalProps for SvgFeComponentTransfer

§

impl GlobalProps for SvgFeComposite

§

impl GlobalProps for SvgFeConvolveMatrix

§

impl GlobalProps for SvgFeDiffuseLighting

§

impl GlobalProps for SvgFeDisplacementMap

§

impl GlobalProps for SvgFeDistantLight

§

impl GlobalProps for SvgFeDropShadow

§

impl GlobalProps for SvgFeFlood

§

impl GlobalProps for SvgFeFuncA

§

impl GlobalProps for SvgFeFuncB

§

impl GlobalProps for SvgFeFuncG

§

impl GlobalProps for SvgFeFuncR

§

impl GlobalProps for SvgFeGaussianBlur

§

impl GlobalProps for SvgFeImage

§

impl GlobalProps for SvgFeMerge

§

impl GlobalProps for SvgFeMergeNode

§

impl GlobalProps for SvgFeMorphology

§

impl GlobalProps for SvgFeOffset

§

impl GlobalProps for SvgFePointLight

§

impl GlobalProps for SvgFeSpecularLighting

§

impl GlobalProps for SvgFeSpotLight

§

impl GlobalProps for SvgFeTile

§

impl GlobalProps for SvgFeTurbulence

§

impl GlobalProps for SvgFilter

§

impl GlobalProps for SvgForeignObject

§

impl GlobalProps for SvgG

§

impl GlobalProps for SvgHatch

§

impl GlobalProps for SvgHatchpath

§

impl GlobalProps for SvgImage

§

impl GlobalProps for SvgLine

§

impl GlobalProps for SvgLinearGradient

§

impl GlobalProps for SvgMarker

§

impl GlobalProps for SvgMask

§

impl GlobalProps for SvgMetadata

§

impl GlobalProps for SvgMpath

§

impl GlobalProps for SvgPath

§

impl GlobalProps for SvgPattern

§

impl GlobalProps for SvgPolygon

§

impl GlobalProps for SvgPolyline

§

impl GlobalProps for SvgRadialGradient

§

impl GlobalProps for SvgRect

§

impl GlobalProps for SvgSet

§

impl GlobalProps for SvgStop

§

impl GlobalProps for SvgSvg

§

impl GlobalProps for SvgSvgA

§

impl GlobalProps for SvgSvgScript

§

impl GlobalProps for SvgSvgStyle

§

impl GlobalProps for SvgSvgTitle

§

impl GlobalProps for SvgSwitch

§

impl GlobalProps for SvgSymbol

§

impl GlobalProps for SvgText

§

impl GlobalProps for SvgTextPath

§

impl GlobalProps for SvgTspan

§

impl GlobalProps for SvgUse

§

impl GlobalProps for SvgView