You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used to define an item contained in a select, an [<optgroup>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup), or a [<datalist>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) element. As such, `<option>` can represent menu items in popups and other lists of items in an HTML document.
5211
5211
5212
-
5212
+
* `selected`: Whether this option is the default selection within the `select` element
5213
+
* `disabled`: Whether this option is disabled, meaning it cannot be selected.
5214
+
* `value`: The value to use if this option is selected when submitting the form
5213
5215
5214
5216
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
5215
5217
"""
5216
5218
def__init__(
5217
5219
self,
5218
5220
*children: ChildrenType,
5219
-
5221
+
selected: Optional[bool] =None,
5222
+
disabled: Optional[bool] =None,
5223
+
value: AttributeType=None,
5220
5224
**attributes: AttributeType,
5221
5225
) ->None:
5222
5226
"""
5223
5227
Used to define an item contained in a select, an [<optgroup>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup), or a [<datalist>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) element. As such, `<option>` can represent menu items in popups and other lists of items in an HTML document.
5224
5228
5225
-
5229
+
* `selected`: Whether this option is the default selection within the `select` element
5230
+
* `disabled`: Whether this option is disabled, meaning it cannot be selected.
5231
+
* `value`: The value to use if this option is selected when submitting the form
5226
5232
5227
5233
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
5228
5234
"""
5229
5235
attributes|= {
5230
-
5236
+
'selected': selected,
5237
+
'disabled': disabled,
5238
+
'value': value,
5231
5239
}
5232
5240
super().__init__(*children, **attributes)
5233
5241
5234
5242
def__call__( # type: ignore
5235
5243
self,
5236
5244
*children: ChildrenType,
5237
-
5245
+
selected: Optional[bool] =None,
5246
+
disabled: Optional[bool] =None,
5247
+
value: AttributeType=None,
5238
5248
**attributes: AttributeType,
5239
5249
):
5240
5250
"""
5241
5251
Used to define an item contained in a select, an [<optgroup>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup), or a [<datalist>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) element. As such, `<option>` can represent menu items in popups and other lists of items in an HTML document.
5242
5252
5243
-
5253
+
* `selected`: Whether this option is the default selection within the `select` element
5254
+
* `disabled`: Whether this option is disabled, meaning it cannot be selected.
5255
+
* `value`: The value to use if this option is selected when submitting the form
5244
5256
5245
5257
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
Represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example, a comment on a review or feedback form.
5403
5450
5404
5451
* `required`: Whether the input is required to submit the form it is contained within.
5452
+
* `name`: The name to use for this value when submitting the form.
5453
+
* `rows`: The number of rows (lines) to use in the text area. Value should be an integer, but given as type `str`.
5454
+
* `cols`: The number of columns (length of each line) to use in the text area. Value should be an integer, but given as type `str`.
5455
+
* `placeholder`: Placeholder text to use when the field is empty.
5456
+
* `disabled`: Whether this option is disabled, meaning it cannot be selected, and will not be submitted with the form.
5457
+
* `maxlength`: The maximum number of characters permitted in the textarea
5458
+
* `wrap`: How to perform word wrapping ("hard" or "soft")
5459
+
* `readonly`: Whether this option is read-only, meaning it cannot be modified
5405
5460
5406
5461
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea)
5407
5462
"""
5408
5463
def__init__(
5409
5464
self,
5410
5465
*children: ChildrenType,
5411
5466
required: Optional[bool] =None,
5467
+
name: AttributeType=None,
5468
+
rows: Optional[str] =None,
5469
+
cols: Optional[str] =None,
5470
+
placeholder: AttributeType=None,
5471
+
disabled: Optional[bool] =None,
5472
+
maxlength: AttributeType=None,
5473
+
wrap: Union[Literal['hard', 'soft'], None] =None,
5474
+
readonly: Optional[bool] =None,
5412
5475
id: Optional[str] =None,
5413
5476
_class: Optional[str] =None,
5414
5477
style: Optional[str] =None,
@@ -5418,6 +5481,14 @@ def __init__(
5418
5481
Represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example, a comment on a review or feedback form.
5419
5482
5420
5483
* `required`: Whether the input is required to submit the form it is contained within.
5484
+
* `name`: The name to use for this value when submitting the form.
5485
+
* `rows`: The number of rows (lines) to use in the text area. Value should be an integer, but given as type `str`.
5486
+
* `cols`: The number of columns (length of each line) to use in the text area. Value should be an integer, but given as type `str`.
5487
+
* `placeholder`: Placeholder text to use when the field is empty.
5488
+
* `disabled`: Whether this option is disabled, meaning it cannot be selected, and will not be submitted with the form.
5489
+
* `maxlength`: The maximum number of characters permitted in the textarea
5490
+
* `wrap`: How to perform word wrapping ("hard" or "soft")
5491
+
* `readonly`: Whether this option is read-only, meaning it cannot be modified
5421
5492
5422
5493
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea)
Represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example, a comment on a review or feedback form.
5443
5530
5444
5531
* `required`: Whether the input is required to submit the form it is contained within.
5532
+
* `name`: The name to use for this value when submitting the form.
5533
+
* `rows`: The number of rows (lines) to use in the text area. Value should be an integer, but given as type `str`.
5534
+
* `cols`: The number of columns (length of each line) to use in the text area. Value should be an integer, but given as type `str`.
5535
+
* `placeholder`: Placeholder text to use when the field is empty.
5536
+
* `disabled`: Whether this option is disabled, meaning it cannot be selected, and will not be submitted with the form.
5537
+
* `maxlength`: The maximum number of characters permitted in the textarea
5538
+
* `wrap`: How to perform word wrapping ("hard" or "soft")
5539
+
* `readonly`: Whether this option is read-only, meaning it cannot be modified
5445
5540
5446
5541
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea)
0 commit comments