html_compose.attributes.slot_attrs

 1from . import BaseAttribute
 2from ..base_types import StrLike
 3
 4
 5class SlotAttrs:
 6    """
 7    This module contains functions for attributes in the 'slot' 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        "slot" attribute: name
15        Name of shadow tree slot
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 SlotAttrs:
 6class SlotAttrs:
 7    """
 8    This module contains functions for attributes in the 'slot' 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        "slot" attribute: name
16        Name of shadow tree slot
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 'slot' 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        "slot" attribute: name
16        Name of shadow tree slot
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)

"slot" attribute: name Name of shadow tree slot

Args: value: Text

Returns: An name attribute to be added to your element