html_compose.attributes.details_attrs
1from . import BaseAttribute 2from ..base_types import StrLike 3 4 5class DetailsAttrs: 6 """ 7 This module contains functions for attributes in the 'details' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def name(value: StrLike) -> BaseAttribute: 13 """ 14 "details" attribute: name 15 Name of group of mutually-exclusive details elements 16 17 Args: 18 value: 19 Text* 20 21 Returns: 22 An name attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("name", value) 27 28 @staticmethod 29 def open(value: bool) -> BaseAttribute: 30 """ 31 "details" attribute: open 32 Whether the details are visible 33 34 Args: 35 value: 36 Boolean attribute 37 38 Returns: 39 An open attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("open", value)
class
DetailsAttrs:
6class DetailsAttrs: 7 """ 8 This module contains functions for attributes in the 'details' element. 9 Which is inherited by a class so we can generate type hints 10 """ 11 12 @staticmethod 13 def name(value: StrLike) -> BaseAttribute: 14 """ 15 "details" attribute: name 16 Name of group of mutually-exclusive details elements 17 18 Args: 19 value: 20 Text* 21 22 Returns: 23 An name attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("name", value) 28 29 @staticmethod 30 def open(value: bool) -> BaseAttribute: 31 """ 32 "details" attribute: open 33 Whether the details are visible 34 35 Args: 36 value: 37 Boolean attribute 38 39 Returns: 40 An open attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("open", value)
This module contains functions for attributes in the 'details' element. Which is inherited by a class so we can generate type hints
@staticmethod
def
name( value: str | float | int | bool) -> html_compose.base_attribute.BaseAttribute:
12 @staticmethod 13 def name(value: StrLike) -> BaseAttribute: 14 """ 15 "details" attribute: name 16 Name of group of mutually-exclusive details elements 17 18 Args: 19 value: 20 Text* 21 22 Returns: 23 An name attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("name", value)
"details" attribute: name Name of group of mutually-exclusive details elements
Args: value: Text*
Returns: An name attribute to be added to your element
29 @staticmethod 30 def open(value: bool) -> BaseAttribute: 31 """ 32 "details" attribute: open 33 Whether the details are visible 34 35 Args: 36 value: 37 Boolean attribute 38 39 Returns: 40 An open attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("open", value)
"details" attribute: open Whether the details are visible
Args: value: Boolean attribute
Returns: An open attribute to be added to your element