Skip to content

Commit 081dbe9

Browse files
finetjuljourdain
authored andcommitted
docs(html): precise the usage of parentheses for expressions
1 parent 9fd77df commit 081dbe9

File tree

1 file changed

+3
-3
lines changed
  • docs/vitepress/guide/tutorial

1 file changed

+3
-3
lines changed

docs/vitepress/guide/tutorial/html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Exposing Vuetify in Python was accomplished by making a few syntax changes.
4040

4141
2. Strings, ints, floats, and booleans used to set attributes are assigned as normal like `vuetify.VTextField(label="myLabel")` for the `"myLabel"` String.
4242

43-
3. Variables used to set attributes are surrounded by parenthesis like `vuetify.VTextField(label=("myLabel",))`. The comma is used to provide an initial value like `vuetify.VTextField(label=("myLabel", "Initial Label"))`.
43+
3. Expressions or state variables used to set attributes are assigned as a String in a tuple (i.e. surrounded by parenthesis) like `vuetify.VTextField(label=("myLabel",))`. The comma enforces the usage of a tuple. An optional second parameter is used to provide an initial value like `vuetify.VTextField(label=("myLabel", "Initial Label"))`.
4444

4545
4. Vuetify implicitly sets boolean properties. For example, if something is to be `disabled`, then one simply writes disabled. In our Python implementation, this is done explicitly like `vuetify.VTextField(disabled=True)`.
4646

@@ -51,8 +51,8 @@ Given these rules, we can recreate the JavaScript/HTML text field example in ***
5151
```python
5252
field = VTextField(
5353
label="Weight",
54-
v_model=("myWeight",28),
55-
suffix=("currentSuffix","lbs"),
54+
v_model=("myWeight", 28),
55+
suffix=("currentSuffix", "lbs"),
5656
)
5757
```
5858

0 commit comments

Comments
 (0)