Struct silkenweb::elements::MeterBuilder [−][src]
pub struct MeterBuilder(_);
Implementations
impl MeterBuilder
[src]
impl MeterBuilder
[src]pub fn id(self, value: impl AttributeValue<String>) -> MeterBuilder
[src]
pub fn class(self, value: impl AttributeValue<String>) -> MeterBuilder
[src]
pub fn value(self, value: impl AttributeValue<String>) -> MeterBuilder
[src]
The current numeric value. This must be between the minimum and maximum values (min attribute and max attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the min attribute and max attribute, the value is equal to the nearest end of the range.
Note: Unless the value attribute is between 0 and 1 (inclusive), the min and max attributes should define the range so that the value attribute’s value is within it.
pub fn min(self, value: impl AttributeValue<String>) -> MeterBuilder
[src]
The lower numeric bound of the measured range. This must be less than the maximum value (max attribute), if specified. If unspecified, the minimum value is 0.
pub fn max(self, value: impl AttributeValue<String>) -> MeterBuilder
[src]
The upper numeric bound of the measured range. This must be greater than the minimum value (min attribute), if specified. If unspecified, the maximum value is 1.
pub fn form(self, value: impl AttributeValue<String>) -> MeterBuilder
[src]
The <form>
element to associate the <meter>
element with (its form owner). The value
of this attribute must be the id of a <form>
in the same document. If this attribute
is not set, the <button>
is associated with its ancestor <form>
element, if any.
This attribute is only used if the <meter>
element is being used as a form-associated
element, such as one displaying a range corresponding to an <input type="number">
.
pub fn high(self, value: impl AttributeValue<u32>) -> MeterBuilder
[src]
The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (min attribute), and it also must be less than the high value and maximum value (high attribute and max attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the low value is equal to the minimum value.
pub fn low(self, value: impl AttributeValue<u32>) -> MeterBuilder
[src]
The lower numeric bound of the high end of the measured range. This must be less than the maximum value (max attribute), and it also must be greater than the low value and minimum value (low attribute and min attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the high value is equal to the maximum value.
pub fn optimum(self, value: impl AttributeValue<u32>) -> MeterBuilder
[src]
This attribute indicates the optimal numeric value. It must be within the range (as defined by the min attribute and max attribute). When used with the low attribute and high attribute, it gives an indication where along the range is considered preferable. For example, if it is between the min attribute and the low attribute, then the lower range is considered preferred.
impl MeterBuilder
[src]
impl MeterBuilder
[src]pub fn on_blur(
self,
f: impl FnMut(FocusEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn on_click(
self,
f: impl FnMut(MouseEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn on_change(
self,
f: impl FnMut(Event, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(Event, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn on_dblclick(
self,
f: impl FnMut(MouseEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn on_focusout(
self,
f: impl FnMut(FocusEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn on_input(
self,
f: impl FnMut(InputEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(InputEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn on_keydown(
self,
f: impl FnMut(KeyboardEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn on_keyup(
self,
f: impl FnMut(KeyboardEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlMeterElement) + 'static
) -> MeterBuilder
pub fn effect(self, f: impl Effect<HtmlMeterElement>) -> MeterBuilder
[src]
impl MeterBuilder
[src]
impl MeterBuilder
[src]pub fn text(self, child: impl Text) -> MeterBuilder
[src]
pub fn child<Child>(self, c: Child) -> MeterBuilder where
Child: Into<Element>,
[src]
Child: Into<Element>,
Trait Implementations
impl Builder for MeterBuilder
[src]
impl Builder for MeterBuilder
[src]type Target = Meter
pub fn build(self) -> <MeterBuilder as Builder>::Target
[src]
pub fn into_element(self) -> Element
[src]
impl DomElement for MeterBuilder
[src]
impl DomElement for MeterBuilder
[src]type Target = HtmlMeterElement
pub fn dom_element(&self) -> <MeterBuilder as DomElement>::Target
[src]
impl From<MeterBuilder> for ElementBuilder
[src]
impl From<MeterBuilder> for ElementBuilder
[src]pub fn from(builder: MeterBuilder) -> ElementBuilder
[src]
impl From<MeterBuilder> for Element
[src]
impl From<MeterBuilder> for Element
[src]pub fn from(builder: MeterBuilder) -> Element
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MeterBuilder
impl !RefUnwindSafe for MeterBuilder
impl !Send for MeterBuilder
impl !Send for MeterBuilder
impl !Sync for MeterBuilder
impl !Sync for MeterBuilder
impl Unpin for MeterBuilder
impl Unpin for MeterBuilder
impl !UnwindSafe for MeterBuilder
impl !UnwindSafe for MeterBuilder