|
@@ -384,7 +384,7 @@ class BaseInput(BaseHTML):
|
|
|
required: Var[bool]
|
|
|
|
|
|
# Specifies the visible width of a text control
|
|
|
- size: Var[int | float]
|
|
|
+ size: Var[str | int | float]
|
|
|
|
|
|
# URL for image inputs
|
|
|
src: Var[str]
|
|
@@ -504,22 +504,22 @@ class Meter(BaseHTML):
|
|
|
form: Var[str]
|
|
|
|
|
|
# High limit of range (above this is considered high value)
|
|
|
- high: Var[int | float]
|
|
|
+ high: Var[str | int | float]
|
|
|
|
|
|
# Low limit of range (below this is considered low value)
|
|
|
- low: Var[int | float]
|
|
|
+ low: Var[str | int | float]
|
|
|
|
|
|
# Maximum value of the range
|
|
|
- max: Var[int | float]
|
|
|
+ max: Var[str | int | float]
|
|
|
|
|
|
# Minimum value of the range
|
|
|
- min: Var[int | float]
|
|
|
+ min: Var[str | int | float]
|
|
|
|
|
|
# Optimum value in the range
|
|
|
- optimum: Var[int | float]
|
|
|
+ optimum: Var[str | int | float]
|
|
|
|
|
|
# Current value of the meter
|
|
|
- value: Var[int | float]
|
|
|
+ value: Var[str | int | float]
|
|
|
|
|
|
|
|
|
class Optgroup(BaseHTML):
|
|
@@ -666,7 +666,7 @@ class Textarea(BaseHTML):
|
|
|
auto_height: Var[bool]
|
|
|
|
|
|
# Visible width of the text control, in average character widths
|
|
|
- cols: Var[int]
|
|
|
+ cols: Var[str | int]
|
|
|
|
|
|
# The default value of the textarea when initially rendered
|
|
|
default_value: Var[str]
|
|
@@ -684,10 +684,10 @@ class Textarea(BaseHTML):
|
|
|
form: Var[str]
|
|
|
|
|
|
# Maximum number of characters allowed in the textarea
|
|
|
- max_length: Var[int]
|
|
|
+ max_length: Var[str | int]
|
|
|
|
|
|
# Minimum number of characters required in the textarea
|
|
|
- min_length: Var[int]
|
|
|
+ min_length: Var[str | int]
|
|
|
|
|
|
# Name of the textarea, used when submitting the form
|
|
|
name: Var[str]
|
|
@@ -702,7 +702,7 @@ class Textarea(BaseHTML):
|
|
|
required: Var[bool]
|
|
|
|
|
|
# Visible number of lines in the text control
|
|
|
- rows: Var[int]
|
|
|
+ rows: Var[str | int]
|
|
|
|
|
|
# The controlled value of the textarea, read only unless used with on_change
|
|
|
value: Var[str]
|