html_compose.attributes.output_attrs
1from . import BaseAttribute 2from ..base_types import Resolvable, StrLike 3 4 5class OutputAttrs: 6 """ 7 This module contains functions for attributes in the 'output' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def for_(value: Resolvable) -> BaseAttribute: 13 """ 14 "output" attribute: for 15 Specifies controls from which the output was calculated 16 17 Args: 18 value: 19 Unordered set of unique space-separated tokens consisting of IDs* 20 21 Returns: 22 An for attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("for", value) 27 28 @staticmethod 29 def form(value) -> BaseAttribute: 30 """ 31 "output" 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 "output" 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
OutputAttrs:
6class OutputAttrs: 7 """ 8 This module contains functions for attributes in the 'output' element. 9 Which is inherited by a class so we can generate type hints 10 """ 11 12 @staticmethod 13 def for_(value: Resolvable) -> BaseAttribute: 14 """ 15 "output" attribute: for 16 Specifies controls from which the output was calculated 17 18 Args: 19 value: 20 Unordered set of unique space-separated tokens consisting of IDs* 21 22 Returns: 23 An for attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("for", value) 28 29 @staticmethod 30 def form(value) -> BaseAttribute: 31 """ 32 "output" 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 "output" 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 'output' element. Which is inherited by a class so we can generate type hints
@staticmethod
def
for_( value: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]) -> html_compose.base_attribute.BaseAttribute:
12 @staticmethod 13 def for_(value: Resolvable) -> BaseAttribute: 14 """ 15 "output" attribute: for 16 Specifies controls from which the output was calculated 17 18 Args: 19 value: 20 Unordered set of unique space-separated tokens consisting of IDs* 21 22 Returns: 23 An for attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("for", value)
"output" attribute: for Specifies controls from which the output was calculated
Args: value: Unordered set of unique space-separated tokens consisting of IDs*
Returns: An for attribute to be added to your element
29 @staticmethod 30 def form(value) -> BaseAttribute: 31 """ 32 "output" 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)
"output" 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 "output" 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)
"output" 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