pub struct ProgressBuilder(/* private fields */);
Implementations§
Source§impl ProgressBuilder
impl ProgressBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
Sourcepub fn max(self, value: impl AttributeValue<f32>) -> Self
pub fn max(self, value: impl AttributeValue<f32>) -> Self
This attribute describes how much work the task indicated by the progress element requires. The max attribute, if present, must have a value greater than 0 and be a valid floating point number. The default value is 1.
Sourcepub fn value(self, value: impl AttributeValue<f32>) -> Self
pub fn value(self, value: impl AttributeValue<f32>) -> Self
This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and max, or between 0 and 1 if max is omitted. If there is no value attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.
Source§impl ProgressBuilder
impl ProgressBuilder
pub fn on_blur( self, f: impl 'static + FnMut(FocusEvent, HtmlProgressElement), ) -> Self
pub fn on_click( self, f: impl 'static + FnMut(MouseEvent, HtmlProgressElement), ) -> Self
pub fn on_change( self, f: impl 'static + FnMut(Event, HtmlProgressElement), ) -> Self
pub fn on_dblclick( self, f: impl 'static + FnMut(MouseEvent, HtmlProgressElement), ) -> Self
pub fn on_focusout( self, f: impl 'static + FnMut(FocusEvent, HtmlProgressElement), ) -> Self
pub fn on_input( self, f: impl 'static + FnMut(InputEvent, HtmlProgressElement), ) -> Self
pub fn on_keydown( self, f: impl 'static + FnMut(KeyboardEvent, HtmlProgressElement), ) -> Self
pub fn on_keyup( self, f: impl 'static + FnMut(KeyboardEvent, HtmlProgressElement), ) -> Self
pub fn effect(self, f: impl Effect<HtmlProgressElement>) -> Self
Trait Implementations§
Source§impl Builder for ProgressBuilder
impl Builder for ProgressBuilder
Source§impl DomElement for ProgressBuilder
impl DomElement for ProgressBuilder
type Target = HtmlProgressElement
fn dom_element(&self) -> Self::Target
Source§impl From<ProgressBuilder> for Element
impl From<ProgressBuilder> for Element
Source§fn from(builder: ProgressBuilder) -> Self
fn from(builder: ProgressBuilder) -> Self
Converts to this type from the input type.
Source§impl From<ProgressBuilder> for ElementBuilder
impl From<ProgressBuilder> for ElementBuilder
Source§fn from(builder: ProgressBuilder) -> Self
fn from(builder: ProgressBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProgressBuilder
impl !RefUnwindSafe for ProgressBuilder
impl !Send for ProgressBuilder
impl !Sync for ProgressBuilder
impl Unpin for ProgressBuilder
impl !UnwindSafe for ProgressBuilder
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