type aria sort
This commit is contained in:
parent
19af976dcb
commit
85481c23c1
|
@ -53,7 +53,7 @@ pub fn global_attrs(span: Span) -> StringyMap<Ident, TokenStream> {
|
||||||
insert("aria_required", "crate::types::Bool");
|
insert("aria_required", "crate::types::Bool");
|
||||||
insert("aria_selected", "crate::types::Bool");
|
insert("aria_selected", "crate::types::Bool");
|
||||||
insert("aria_placeholder", "String");
|
insert("aria_placeholder", "String");
|
||||||
insert("aria_sort", "String"); // TODO only supports some values
|
insert("aria_sort", "crate::types::AriaSort"); // TODO only supports some values
|
||||||
insert("aria_valuemax", "isize");
|
insert("aria_valuemax", "isize");
|
||||||
insert("aria_valuemin", "isize");
|
insert("aria_valuemin", "isize");
|
||||||
insert("aria_valuenow", "isize");
|
insert("aria_valuenow", "isize");
|
||||||
|
|
|
@ -537,3 +537,15 @@ pub enum Wrap {
|
||||||
#[strum(to_string = "off")]
|
#[strum(to_string = "off")]
|
||||||
Off,
|
Off,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(EnumString, Display, PartialEq, Eq, PartialOrd, Ord, AsRefStr, IntoStaticStr)]
|
||||||
|
pub enum AriaSort {
|
||||||
|
#[strum(to_string = "ascending")]
|
||||||
|
Ascending,
|
||||||
|
#[strum(to_string = "descending")]
|
||||||
|
Descending,
|
||||||
|
#[strum(to_string = "none")]
|
||||||
|
None,
|
||||||
|
#[strum(to_string = "other")]
|
||||||
|
Other,
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue