Merge pull request #12 from axodotdev/aria-sort
This commit is contained in:
commit
12c89a4fc8
|
@ -53,7 +53,7 @@ pub fn global_attrs(span: Span) -> StringyMap<Ident, TokenStream> {
|
|||
insert("aria_required", "crate::types::Bool");
|
||||
insert("aria_selected", "crate::types::Bool");
|
||||
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_valuemin", "isize");
|
||||
insert("aria_valuenow", "isize");
|
||||
|
|
|
@ -538,6 +538,18 @@ pub enum Wrap {
|
|||
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,
|
||||
}
|
||||
|
||||
#[derive(EnumString, Display, PartialEq, Eq, PartialOrd, Ord, AsRefStr, IntoStaticStr)]
|
||||
pub enum AriaOrientation {
|
||||
#[strum(to_string = "horizontal")]
|
||||
|
|
Loading…
Reference in New Issue