posinset property

  1. @override
  2. @Accessor(key: 'aria-posinset')
int? posinset

Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-setsize.

If all items in a set are present in the document structure, it is not necessary to set this attribute, as the user agent can automatically calculate the set size and position for each item. However, if only a portion of the set is present in the document structure at a given moment, this property is needed to provide an explicit indication of an element's position.

Authors MUST set the value for aria-posinset to an integer greater than or equal to 1, and less than or equal to the size of the set. Authors SHOULD use aria-posinset in conjunction with aria-setsize.

See: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-posinset

Implementation

@override
@Accessor(key: 'aria-posinset')
int? get posinset =>
    (props[_$key__posinset___$AriaPropsMixin] ?? null) as int?;
  1. @override
  2. @Accessor(key: 'aria-posinset')
void posinset=(int? value)

Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-setsize.

If all items in a set are present in the document structure, it is not necessary to set this attribute, as the user agent can automatically calculate the set size and position for each item. However, if only a portion of the set is present in the document structure at a given moment, this property is needed to provide an explicit indication of an element's position.

Authors MUST set the value for aria-posinset to an integer greater than or equal to 1, and less than or equal to the size of the set. Authors SHOULD use aria-posinset in conjunction with aria-setsize.

See: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-posinset

Implementation

@override
@Accessor(key: 'aria-posinset')
set posinset(int? value) => props[_$key__posinset___$AriaPropsMixin] = value;