Li class
Contains WidgetElement
that contains a virtual node
with the <li>
tag.
Constructors
- Li.new([String? value])
-
The
<li>
HTML element is used to represent an item in a list. Read more...
Properties
Methods
-
$(
WidgetElement element) → WidgetElement -
Adds the specified
WidgetElement
toWidgetElement
from which the method was called. Think of it as an add, insert, etc. method.inherited -
$list(
List< WidgetElement> elements) → WidgetElement -
Adds the specified list with
WidgetElement
to theWidgetElement
from which the method was called. Think of it as an add, insert, etc. method.inherited -
$slot(
int id) → WidgetElement -
Creates a slot for inserting a side Widget.
inherited
-
a(
String name, dynamic value, {bool? removeIf}) → WidgetElement -
Allows to create a custom HTML attribute,
for example, if you can't find the desired one.
inherited
-
accessKey(
String key, {bool? removeIf}) → WidgetElement -
The accesskey global attribute provides
a hint for generating a keyboard shortcut
for the current element.
Read more...
inherited
-
autoCapitalize(
String value, {bool? removeIf}) → WidgetElement -
The autocapitalize global attribute that controls
whether and how text input is automatically
capitalized as it is entered/edited by the user.
Read more...
inherited
-
autoFocus(
bool boolean) → WidgetElement -
The autofocus global attribute indicating
that an element should be focused on page load,
or when the
<dialog>
that it is part of is displayed. Read more...inherited -
contentEditable(
bool boolean, {bool? removeIf}) → WidgetElement -
The contenteditable global attribute
indicating if the element should be editable by the user.
Read more...
inherited
-
dir(
String dir, {bool? removeIf}) → WidgetElement -
The dir global attribute that indicates
the directionality of the element's text.
Read more...
inherited
-
draggable(
bool boolean, {bool? removeIf}) → WidgetElement -
The draggable global attribute attribute that
indicates whether the element can be dragged,
either with native browser behavior
or the HTML Drag and Drop API.
Read more...
inherited
-
enterKeyHint(
String key, {bool? removeIf}) → WidgetElement -
The enterkeyhint global attribute defining
what action label (or icon) to present
for the enter key on virtual keyboards.
Read more...
inherited
-
The hidden global attribute indicating that
the browser should not render the contents
of the element.
Read more...
inherited
-
id(
String id, {bool? removeIf}) → WidgetElement -
The id global attribute defines an identifier
(ID) which must be unique in the whole document.
Read more...
inherited
-
inputMode(
String mode, {bool? removeIf}) → WidgetElement -
The inputmode global attribute that hints
at the type of data that might be entered
by the user while editing the element
or its contents.
Read more...
inherited
-
itemId(
String value, {bool? removeIf}) → WidgetElement -
The itemid global attribute provides
microdata in the form of a unique,
global identifier of an item.
Read more...
inherited
-
itemProp(
String name, {bool? removeIf}) → WidgetElement -
The itemprop global attribute
is used to add properties to an item.
Read more...
inherited
-
itemRef(
String value, {bool? removeIf}) → WidgetElement -
itemref provides a list of element IDs
(not itemids) elsewhere in the document,
with additional properties
Read more...
inherited
-
itemScope(
bool boolean) → WidgetElement -
itemscope is a global attribute that
defines the scope of associated metadata.
Read more...
inherited
-
itemType(
String url, {bool? removeIf}) → WidgetElement -
The global attribute itemtype specifies the URL
of the vocabulary that will be used to define
itemprop's (item properties) in the data structure.
Read more...
inherited
-
lang(
String langCode, {bool? removeIf}) → WidgetElement -
The lang global attribute helps define
the language of an element: the language
that non-editable elements are written in,
or the language that the editable elements
should be written in by the user.
Read more...
inherited
-
nonce(
String crypto, {bool? removeIf}) → WidgetElement -
The nonce global attribute defining
a cryptographic nonce ("number used once")
which can be used by Content Security Policy
to determine whether or not a given fetch will
be allowed to proceed for a given element.
Read more...
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on(
String eventName, dynamic fun(Element, Event)) → WidgetElement -
Allows to create a custom HTML event,
for example, if you can't find the desired one.
inherited
-
onAdd(
dynamic fun(Element)?) → WidgetElement -
The event is activated when an
WidgetElement
is added to the HTML DOM.inherited -
onBeforeCopy(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The copy event fires when the user initiates
a copy action through the browser's user interface.
Read more...
inherited
-
onBeforeCut(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The cut event fires when the user
initiates a cut action through
the browser's user interface.
Read more...
inherited
-
onBeforePaste(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The paste event is fired when the user
has initiated a "paste" action through
the browser's user interface.
Read more...
inherited
-
onBlur(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The blur event fires when an element has lost focus.
Read more...
inherited
-
onClick(
dynamic fun(Element, Event)?) → WidgetElementVisible -
An element receives a click event when
a pointing device button (such as a mouse's
primary mouse button) is both pressed
and released while the pointer
is located inside the element.
Read more...
inherited
-
onContextMenu(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The contextmenu event fires when
the user attempts to open a context menu.
Read more...
inherited
-
onCopy(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The copy event fires when the user initiates
a copy action through the browser's user interface.
Read more...
inherited
-
onCut(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The cut event fires when the user
initiates a cut action through
the browser's user interface.
Read more...
inherited
-
onDestroy(
dynamic fun()?) → WidgetElement -
The event is activated when Widget
is removed from the Reio Virtual DOM.
inherited
-
onDoubleClick(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The dblclick event fires when a pointing
device button (such as a mouse's primary button)
is double-clicked; that is, when it's rapidly
clicked twice on a single element
within a very short span of time.
Read more...
inherited
-
onDrag(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The drag event is fired every few
hundred milliseconds as an element
or text selection is being dragged by the user.
Read more...
inherited
-
onDragEnd(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The dragend event is fired when a drag
operation is being ended (by releasing
a mouse button or hitting the escape key).
Read more...
inherited
-
onDragEnter(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The dragend event is fired when a drag
operation is being ended (by releasing
a mouse button or hitting the escape key).
Read more...
inherited
-
onDragLeave(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The dragleave event is fired when
a dragged element or text selection
leaves a valid drop target.
Read more...
inherited
-
onDragOver(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The dragover event is fired when an element
or text selection is being dragged over
a valid drop target (every few hundred milliseconds).
Read more...
inherited
-
onDragStart(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The dragover event is fired when an element
or text selection is being dragged over
a valid drop target (every few hundred milliseconds).
Read more...
inherited
-
onDrop(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The drop event is fired when an element
or text selection is dropped
on a valid drop target.
Read more...
inherited
-
onFocus(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The focus event fires when an element
has received focus. The event does not bubble,
but the related focusin event that follows does bubble.
Read more...
inherited
-
onKeyDown(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The keydown event is fired when a key is pressed.
Read more...
inherited
-
onKeyUp(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The keyup event is fired when a key is released.
Read more...
inherited
-
onMount(
dynamic fun(Element)?) → WidgetElement -
The event is activated when Widget
is mounted in the Reio Virtual DOM.
inherited
-
onMouseDown(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The mousedown event is fired at an Element
when a pointing device button is pressed
while the pointer is inside the element.
Read more...
inherited
-
onMouseEnter(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The mouseenter event is fired at an Element
when a pointing device (usually a mouse)
is initially moved so that its hotspot
is within the element at which the event was fired.
Read more...
inherited
-
onMouseLeave(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The mouseleave event is fired at an Element
when the cursor of a pointing device
(usually a mouse) is moved out of it.
Read more...
inherited
-
onMouseMove(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The mousemove event is fired at an element
when a pointing device (usually a mouse)
is moved while the cursor's hotspot is inside it.
Read more...
inherited
-
onMouseOut(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The mouseout event is fired at an Element
when a pointing device (usually a mouse) is
used to move the cursor so that it is no longer
contained within the element or one of its children.
Read more...
inherited
-
onMouseOver(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The mouseover event is fired at an Element
when a pointing device (such as a mouse
or trackpad) is used to move the cursor
onto the element or one of its child elements.
Read more...
inherited
-
onMouseUp(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The mouseup event is fired at an Element
when a button on a pointing device
(such as a mouse or trackpad) is released
while the pointer is located inside it.
Read more...
inherited
-
onPaste(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The paste event is fired when the user
has initiated a "paste" action through
the browser's user interface.
Read more...
inherited
-
onRemove(
dynamic fun()?) → WidgetElement -
The event is activated when an
WidgetElement
is removed from the HTML DOM.inherited -
onScroll(
dynamic fun(Element, Event)?) → Li - The scroll event fires when an element has been scrolled. Read more...
-
onTouchCancel(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The touchcancel event is fired when one
or more touch points have been disrupted
in an implementation-specific manner
(for example, too many touch points are created).
Read more...
inherited
-
onTouchEnd(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The touchend event fires when one
or more touch points are removed from the touch surface.
Read more...
inherited
-
onTouchMove(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The touchmove event is fired when one
or more touch points are moved along the touch surface.
Read more...
inherited
-
onTouchStart(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The touchstart event is fired when one
or more touch points are placed on the touch surface.
Read more...
inherited
-
onTransitionEnd(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The transitionend event is fired
when a CSS transition has completed.
Read more...
inherited
-
onWheel(
dynamic fun(Element, Event)?) → WidgetElementVisible -
The wheel event fires when the user rotates
a wheel button on a pointing
device (typically a mouse).
Read more...
inherited
-
remove(
{required Widget widget}) → WidgetElement -
Removes
WidgetElement
from the HTML DOM.inherited -
removeIf(
{required Widget widget, required bool condition()?}) → WidgetElement -
Removes
WidgetElement
from the HTML DOM if the condition is true.inherited -
removeIfTrue(
{required Widget widget, required int slot, required bool condition()?}) → WidgetElement -
Removes
WidgetElement
from the HTML DOM if the condition is true and adds it using$
method if it is false.inherited -
setJump(
Map< int, WidgetElement> map) → WidgetElement -
Splits the value into the specified elements.
Accepts a
map
with the widget key, works together with the getJump function.inherited -
spellCheck(
bool boolean, {bool? removeIf}) → WidgetElement -
The spellcheck global attribute that defines
whether the element may be checked for spelling errors.
Read more...
inherited
-
style(
List< String> styleList, {bool? removeIf}) → WidgetElement -
The style global attribute contains CSS
styling declarations to be applied to the element.
Read more...
inherited
-
tabIndex(
int number, {bool? removeIf}) → WidgetElement -
The tabindex global attribute allows developers
to make HTML elements focusable, allow or prevent
them from being sequentially focusable (usually with
the Tab key, hence the name) and determine their
relative ordering for sequential focus navigation.
Read more...
inherited
-
thisClass(
List< String> nameList, {bool? removeIf}) → WidgetElement -
The class global attribute is a list
of the case-sensitive classes of the element.
Read more...
inherited
-
thisIs(
String elementName, {bool? removeIf}) → WidgetElement -
The is global attribute allows you to specify
that a standard HTML element should behave
like a defined custom built-in element
(see Using custom elements for more details).
Read more...
inherited
-
title(
String text, {bool? removeIf}) → WidgetElement -
The title global attribute contains text
representing advisory information related
to the element it belongs to.
Read more...
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
translate(
String value, {bool? removeIf}) → WidgetElement -
The translate global attribute that is used
to specify whether an element's translatable
attribute values and its Text node children
should be translated when the page is localized,
or whether to leave them unchanged.
Read more...
inherited
-
value(
int number, {bool? removeIf}) → Li -
This attribute indicates the current
ordinal value of the list item
as defined by the
<ol>
element. Read more...
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited