html_compose.attributes.dfn_attrs

 1from . import BaseAttribute
 2from ..base_types import StrLike
 3
 4
 5class DfnAttrs:
 6    """
 7    This module contains functions for attributes in the 'dfn' element.
 8    Which is inherited by a class so we can generate type hints
 9    """
10
11    @staticmethod
12    def title(value: StrLike) -> BaseAttribute:
13        """
14        "dfn" attribute: title
15        Full term or expansion of abbreviation
16
17        Args:
18            value:
19                Text
20
21        Returns:
22            An title attribute to be added to your element
23
24        """
25
26        return BaseAttribute("title", value)
class DfnAttrs:
 6class DfnAttrs:
 7    """
 8    This module contains functions for attributes in the 'dfn' element.
 9    Which is inherited by a class so we can generate type hints
10    """
11
12    @staticmethod
13    def title(value: StrLike) -> BaseAttribute:
14        """
15        "dfn" attribute: title
16        Full term or expansion of abbreviation
17
18        Args:
19            value:
20                Text
21
22        Returns:
23            An title attribute to be added to your element
24
25        """
26
27        return BaseAttribute("title", value)

This module contains functions for attributes in the 'dfn' element. Which is inherited by a class so we can generate type hints

@staticmethod
def title( value: str | float | int | bool) -> html_compose.base_attribute.BaseAttribute:
12    @staticmethod
13    def title(value: StrLike) -> BaseAttribute:
14        """
15        "dfn" attribute: title
16        Full term or expansion of abbreviation
17
18        Args:
19            value:
20                Text
21
22        Returns:
23            An title attribute to be added to your element
24
25        """
26
27        return BaseAttribute("title", value)

"dfn" attribute: title Full term or expansion of abbreviation

Args: value: Text

Returns: An title attribute to be added to your element