html_compose.attributes.label_attrs
1from . import BaseAttribute 2 3 4class LabelAttrs: 5 """ 6 This module contains functions for attributes in the 'label' element. 7 Which is inherited by a class so we can generate type hints 8 """ 9 10 @staticmethod 11 def for_(value) -> BaseAttribute: 12 """ 13 "label" attribute: for 14 Associate the label with form control 15 16 Args: 17 value: 18 ID* 19 20 Returns: 21 An for attribute to be added to your element 22 23 """ 24 25 return BaseAttribute("for", value)
class
LabelAttrs:
5class LabelAttrs: 6 """ 7 This module contains functions for attributes in the 'label' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def for_(value) -> BaseAttribute: 13 """ 14 "label" attribute: for 15 Associate the label with form control 16 17 Args: 18 value: 19 ID* 20 21 Returns: 22 An for attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("for", value)
This module contains functions for attributes in the 'label' element. Which is inherited by a class so we can generate type hints
11 @staticmethod 12 def for_(value) -> BaseAttribute: 13 """ 14 "label" attribute: for 15 Associate the label with form control 16 17 Args: 18 value: 19 ID* 20 21 Returns: 22 An for attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("for", value)
"label" attribute: for Associate the label with form control
Args: value: ID*
Returns: An for attribute to be added to your element