html_compose.attributes.map_attrs
1from . import BaseAttribute 2from ..base_types import StrLike 3 4 5class MapAttrs: 6 """ 7 This module contains functions for attributes in the 'map' 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 "map" attribute: name 15 Name of image map to reference from the usemap attribute 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)
class
MapAttrs:
6class MapAttrs: 7 """ 8 This module contains functions for attributes in the 'map' 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 "map" attribute: name 16 Name of image map to reference from the usemap attribute 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)
This module contains functions for attributes in the 'map' 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 "map" attribute: name 16 Name of image map to reference from the usemap attribute 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)
"map" attribute: name Name of image map to reference from the usemap attribute
Args: value: Text*
Returns: An name attribute to be added to your element