Explorar o código

Add doc about quoting string values in props

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
d681d699de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nicegui/elements/element.py

+ 1 - 1
nicegui/elements/element.py

@@ -102,7 +102,7 @@ class Element:
     def props(self, add: Optional[str] = None, *, remove: Optional[str] = None):
     def props(self, add: Optional[str] = None, *, remove: Optional[str] = None):
         '''Quasar props https://quasar.dev/vue-components/button#design to modify the look of the element.
         '''Quasar props https://quasar.dev/vue-components/button#design to modify the look of the element.
         Boolean props will automatically activated if they appear in the list of the `add` property.
         Boolean props will automatically activated if they appear in the list of the `add` property.
-        Props are separated with a blank space.
+        Props are separated with a blank space. String values must be quoted.
         Every prop passed to the `remove` parameter will be removed from the element.
         Every prop passed to the `remove` parameter will be removed from the element.
         This can be helpful if the predefined props by NiceGUI are not wanted in a particular styling.
         This can be helpful if the predefined props by NiceGUI are not wanted in a particular styling.
         '''
         '''