html_compose.attributes.data_attrs
1from . import BaseAttribute 2from ..base_types import StrLike 3 4 5class DataAttrs: 6 """ 7 This module contains functions for attributes in the 'data' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def value(value: StrLike) -> BaseAttribute: 13 """ 14 "data" attribute: value 15 Machine-readable value 16 17 Args: 18 value: 19 Text* 20 21 Returns: 22 An value attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("value", value)
class
DataAttrs:
6class DataAttrs: 7 """ 8 This module contains functions for attributes in the 'data' element. 9 Which is inherited by a class so we can generate type hints 10 """ 11 12 @staticmethod 13 def value(value: StrLike) -> BaseAttribute: 14 """ 15 "data" attribute: value 16 Machine-readable value 17 18 Args: 19 value: 20 Text* 21 22 Returns: 23 An value attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("value", value)
This module contains functions for attributes in the 'data' element. Which is inherited by a class so we can generate type hints
@staticmethod
def
value( value: str | float | int | bool) -> html_compose.base_attribute.BaseAttribute:
12 @staticmethod 13 def value(value: StrLike) -> BaseAttribute: 14 """ 15 "data" attribute: value 16 Machine-readable value 17 18 Args: 19 value: 20 Text* 21 22 Returns: 23 An value attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("value", value)
"data" attribute: value Machine-readable value
Args: value: Text*
Returns: An value attribute to be added to your element