html_compose.attributes.fieldset_attrs
1from . import BaseAttribute 2from ..base_types import StrLike 3 4 5class FieldsetAttrs: 6 """ 7 This module contains functions for attributes in the 'fieldset' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def disabled(value: bool) -> BaseAttribute: 13 """ 14 "fieldset" attribute: disabled 15 Whether the descendant form controls, except any inside legend, are disabled 16 17 Args: 18 value: 19 Boolean attribute 20 21 Returns: 22 An disabled attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("disabled", value) 27 28 @staticmethod 29 def form(value) -> BaseAttribute: 30 """ 31 "fieldset" attribute: form 32 Associates the element with a form element 33 34 Args: 35 value: 36 ID* 37 38 Returns: 39 An form attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("form", value) 44 45 @staticmethod 46 def name(value: StrLike) -> BaseAttribute: 47 """ 48 "fieldset" attribute: name 49 Name of the element to use for form submission and in the form.elements API 50 51 Args: 52 value: 53 Text* 54 55 Returns: 56 An name attribute to be added to your element 57 58 """ 59 60 return BaseAttribute("name", value)
class
FieldsetAttrs:
6class FieldsetAttrs: 7 """ 8 This module contains functions for attributes in the 'fieldset' element. 9 Which is inherited by a class so we can generate type hints 10 """ 11 12 @staticmethod 13 def disabled(value: bool) -> BaseAttribute: 14 """ 15 "fieldset" attribute: disabled 16 Whether the descendant form controls, except any inside legend, are disabled 17 18 Args: 19 value: 20 Boolean attribute 21 22 Returns: 23 An disabled attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("disabled", value) 28 29 @staticmethod 30 def form(value) -> BaseAttribute: 31 """ 32 "fieldset" attribute: form 33 Associates the element with a form element 34 35 Args: 36 value: 37 ID* 38 39 Returns: 40 An form attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("form", value) 45 46 @staticmethod 47 def name(value: StrLike) -> BaseAttribute: 48 """ 49 "fieldset" attribute: name 50 Name of the element to use for form submission and in the form.elements API 51 52 Args: 53 value: 54 Text* 55 56 Returns: 57 An name attribute to be added to your element 58 59 """ 60 61 return BaseAttribute("name", value)
This module contains functions for attributes in the 'fieldset' element. Which is inherited by a class so we can generate type hints
12 @staticmethod 13 def disabled(value: bool) -> BaseAttribute: 14 """ 15 "fieldset" attribute: disabled 16 Whether the descendant form controls, except any inside legend, are disabled 17 18 Args: 19 value: 20 Boolean attribute 21 22 Returns: 23 An disabled attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("disabled", value)
"fieldset" attribute: disabled Whether the descendant form controls, except any inside legend, are disabled
Args: value: Boolean attribute
Returns: An disabled attribute to be added to your element
29 @staticmethod 30 def form(value) -> BaseAttribute: 31 """ 32 "fieldset" attribute: form 33 Associates the element with a form element 34 35 Args: 36 value: 37 ID* 38 39 Returns: 40 An form attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("form", value)
"fieldset" attribute: form Associates the element with a form element
Args: value: ID*
Returns: An form attribute to be added to your element
@staticmethod
def
name( value: str | float | int | bool) -> html_compose.base_attribute.BaseAttribute:
46 @staticmethod 47 def name(value: StrLike) -> BaseAttribute: 48 """ 49 "fieldset" attribute: name 50 Name of the element to use for form submission and in the form.elements API 51 52 Args: 53 value: 54 Text* 55 56 Returns: 57 An name attribute to be added to your element 58 59 """ 60 61 return BaseAttribute("name", value)
"fieldset" attribute: name Name of the element to use for form submission and in the form.elements API
Args: value: Text*
Returns: An name attribute to be added to your element