pub struct StyleBuilder(/* private fields */);
Implementations§
Source§impl StyleBuilder
impl StyleBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
Sourcepub fn media(self, value: impl AttributeValue<String>) -> Self
pub fn media(self, value: impl AttributeValue<String>) -> Self
This attribute defines which media the style should be applied to. Its value is a media query, which defaults to all if the attribute is missing.
Sourcepub fn nonce(self, value: impl AttributeValue<String>) -> Self
pub fn nonce(self, value: impl AttributeValue<String>) -> Self
A cryptographic nonce (number used once) used to whitelist inline styles in a style-src Content-Security-Policy. The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource’s policy is otherwise trivial.
Sourcepub fn title(self, value: impl AttributeValue<String>) -> Self
pub fn title(self, value: impl AttributeValue<String>) -> Self
This attribute specifies alternative style sheet sets.
Source§impl StyleBuilder
impl StyleBuilder
pub fn on_blur( self, f: impl 'static + FnMut(FocusEvent, HtmlStyleElement), ) -> Self
pub fn on_click( self, f: impl 'static + FnMut(MouseEvent, HtmlStyleElement), ) -> Self
pub fn on_change(self, f: impl 'static + FnMut(Event, HtmlStyleElement)) -> Self
pub fn on_dblclick( self, f: impl 'static + FnMut(MouseEvent, HtmlStyleElement), ) -> Self
pub fn on_focusout( self, f: impl 'static + FnMut(FocusEvent, HtmlStyleElement), ) -> Self
pub fn on_input( self, f: impl 'static + FnMut(InputEvent, HtmlStyleElement), ) -> Self
pub fn on_keydown( self, f: impl 'static + FnMut(KeyboardEvent, HtmlStyleElement), ) -> Self
pub fn on_keyup( self, f: impl 'static + FnMut(KeyboardEvent, HtmlStyleElement), ) -> Self
pub fn effect(self, f: impl Effect<HtmlStyleElement>) -> Self
Trait Implementations§
Source§impl Builder for StyleBuilder
impl Builder for StyleBuilder
Source§impl DomElement for StyleBuilder
impl DomElement for StyleBuilder
type Target = HtmlStyleElement
fn dom_element(&self) -> Self::Target
Source§impl From<StyleBuilder> for Element
impl From<StyleBuilder> for Element
Source§fn from(builder: StyleBuilder) -> Self
fn from(builder: StyleBuilder) -> Self
Converts to this type from the input type.
Source§impl From<StyleBuilder> for ElementBuilder
impl From<StyleBuilder> for ElementBuilder
Source§fn from(builder: StyleBuilder) -> Self
fn from(builder: StyleBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StyleBuilder
impl !RefUnwindSafe for StyleBuilder
impl !Send for StyleBuilder
impl !Sync for StyleBuilder
impl Unpin for StyleBuilder
impl !UnwindSafe for StyleBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more