pub struct OlBuilder(/* private fields */);
Implementations§
Source§impl OlBuilder
impl OlBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
Sourcepub fn reversed(self, value: impl AttributeValue<bool>) -> Self
pub fn reversed(self, value: impl AttributeValue<bool>) -> Self
Specifies that the list’s items are in reverse order. Items will be numbered from high to low.
Sourcepub fn start(self, value: impl AttributeValue<u32>) -> Self
pub fn start(self, value: impl AttributeValue<u32>) -> Self
An integer to start counting from for the list items. Always an Arabic numeral (1, 2, 3, etc.), even when the numbering type is letters or Roman numerals. For example, to start numbering elements from the letter “d” or the Roman numeral “iv,” use start=“4”.
Sourcepub fn type_(self, value: impl AttributeValue<String>) -> Self
pub fn type_(self, value: impl AttributeValue<String>) -> Self
Sets the numbering type:
a
for lowercase lettersA
for uppercase lettersi
for lowercase Roman numeralsI
for uppercase Roman numerals1
for numbers (default)
The specified type is used for the entire list unless a different type attribute is used
on an enclosed <li>
element.
Note: Unless the type of the list number matters (like legal or technical documents where items are referenced by their number/letter), use the CSS list-style-type property instead.
Source§impl OlBuilder
impl OlBuilder
pub fn on_blur( self, f: impl 'static + FnMut(FocusEvent, HtmlOListElement), ) -> Self
pub fn on_click( self, f: impl 'static + FnMut(MouseEvent, HtmlOListElement), ) -> Self
pub fn on_change(self, f: impl 'static + FnMut(Event, HtmlOListElement)) -> Self
pub fn on_dblclick( self, f: impl 'static + FnMut(MouseEvent, HtmlOListElement), ) -> Self
pub fn on_focusout( self, f: impl 'static + FnMut(FocusEvent, HtmlOListElement), ) -> Self
pub fn on_input( self, f: impl 'static + FnMut(InputEvent, HtmlOListElement), ) -> Self
pub fn on_keydown( self, f: impl 'static + FnMut(KeyboardEvent, HtmlOListElement), ) -> Self
pub fn on_keyup( self, f: impl 'static + FnMut(KeyboardEvent, HtmlOListElement), ) -> Self
pub fn effect(self, f: impl Effect<HtmlOListElement>) -> Self
Trait Implementations§
Source§impl DomElement for OlBuilder
impl DomElement for OlBuilder
type Target = HtmlOListElement
fn dom_element(&self) -> Self::Target
Auto Trait Implementations§
impl Freeze for OlBuilder
impl !RefUnwindSafe for OlBuilder
impl !Send for OlBuilder
impl !Sync for OlBuilder
impl Unpin for OlBuilder
impl !UnwindSafe for OlBuilder
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