setsize property

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

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-posinset.

This property is marked on the members of a set, not the container element that collects the members of the set. To orient the user by saying an element is "item X out of Y," the assistive technologies would use X equal to the aria-posinset attribute and Y equal to the aria-setsize attribute.

If all items in a set are present in the document structure, it is not necessary to set this property, 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 (in order to reduce document size), this property is needed to provide an explicit indication of set size.

Authors SHOULD use aria-setsize in conjunction with aria-posinset.

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

Implementation

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

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-posinset.

This property is marked on the members of a set, not the container element that collects the members of the set. To orient the user by saying an element is "item X out of Y," the assistive technologies would use X equal to the aria-posinset attribute and Y equal to the aria-setsize attribute.

If all items in a set are present in the document structure, it is not necessary to set this property, 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 (in order to reduce document size), this property is needed to provide an explicit indication of set size.

Authors SHOULD use aria-setsize in conjunction with aria-posinset.

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

Implementation

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