Просмотр исходного кода

add popover api (#2498)

Co-authored-by: nayo0513 <nayo05130513@gmail.com>
nayo0513 1 год назад
Родитель
Сommit
689ac5433f
2 измененных файлов с 7 добавлено и 0 удалено
  1. 3 0
      packages/html/src/attribute_groups.rs
  2. 4 0
      packages/html/src/elements.rs

+ 3 - 0
packages/html/src/attribute_groups.rs

@@ -291,6 +291,9 @@ mod_methods! {
     /// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part>
     part;
 
+    /// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover>
+    popover;
+
     /// <https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/role>
     role;
 

+ 4 - 0
packages/html/src/elements.rs

@@ -1369,6 +1369,8 @@ builder_constructors! {
         formnovalidate: Bool DEFAULT,
         formtarget: Target DEFAULT,
         name: Id DEFAULT,
+        popovertarget: String DEFAULT,
+        popovertargetaction: String DEFAULT,
         value: String DEFAULT,
         r#type: String "type",
     };
@@ -1425,6 +1427,8 @@ builder_constructors! {
         multiple: Bool DEFAULT,
         name: Id DEFAULT,
         pattern: String DEFAULT,
+        popovertarget: String DEFAULT,
+        popovertargetaction: String DEFAULT,
         placeholder: String DEFAULT,
         readonly: Bool DEFAULT,
         required: Bool DEFAULT,