Quellcode durchsuchen

docs: update readme

Jonathan Kelley vor 3 Jahren
Ursprung
Commit
285b33dd38
2 geänderte Dateien mit 14 neuen und 7 gelöschten Zeilen
  1. 1 1
      README.md
  2. 13 6
      packages/html/src/lib.rs

+ 1 - 1
README.md

@@ -91,7 +91,7 @@ If you know React, then you already know Dioxus.
 
 | File Navigator (Desktop)                                         | Bluetooth scanner (Desktop)                                      | TodoMVC (All platforms)                                          | Widget Gallery                                                   |
 | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
-| ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) |
+| ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) | ![asd](https://github.com/DioxusLabs/todomvc/blob/master/example.png) | ![asd](https://sixtyfps.io/resources/printerdemo_screenshot.png) |
 
 
 

+ 13 - 6
packages/html/src/lib.rs

@@ -479,6 +479,7 @@ pub trait GlobalAttributes {
 
         /// Specifies the treatment of content that overflows the element's box.
         overflow: "overflow",
+
         /// Specifies the treatment of content that overflows the element's box horizontally.
         overflow_x: "overflow-x",
 
@@ -518,6 +519,10 @@ pub trait GlobalAttributes {
         /// Specifies how an element is positioned.
         position: "position",
 
+        /// The pointer-events CSS property sets under what circumstances (if any) a particular graphic element can
+        /// become the target of pointer events.
+        ///
+        /// MDN: [`pointer_events`](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events)
         pointer_events: "pointer-events",
 
         /// Specifies quotation marks for embedded quotations.
@@ -542,6 +547,7 @@ pub trait GlobalAttributes {
 
         /// Specifies the decoration added to text.
         text_decoration: "text-decoration",
+
         /// Specifies the color of the text_decoration_line.
         text_decoration_color: "text-decoration-color",
 
@@ -1529,19 +1535,19 @@ builder_constructors! {
         step: String,
         tabindex: usize,
 
-        // This has a manual implementation below
-        // r#type: InputType,
+        width: isize,
 
+        // Manual implementations below...
+        // r#type: InputType,
         // value: String,
-        width: isize,
     };
 
     /// Build a
     /// [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label)
     /// element.
     label {
-        // r#for: Id,
         form: Id,
+        // r#for: Id,
     };
 
     /// Build a
@@ -1577,10 +1583,11 @@ builder_constructors! {
         disabled: Bool,
         label: String,
 
-        // defined below
-        // selected: Bool,
 
         value: String,
+
+        // defined below
+        // selected: Bool,
     };
 
     /// Build a