html_compose.attributes.ol_attrs

 1from . import BaseAttribute
 2from typing import Literal
 3
 4
 5class OlAttrs:
 6    """
 7    This module contains functions for attributes in the 'ol' element.
 8    Which is inherited by a class so we can generate type hints
 9    """
10
11    @staticmethod
12    def reversed(value: bool) -> BaseAttribute:
13        """
14        "ol" attribute: reversed
15        Number the list backwards
16
17        Args:
18            value:
19                Boolean attribute
20
21        Returns:
22            An reversed attribute to be added to your element
23
24        """
25
26        return BaseAttribute("reversed", value)
27
28    @staticmethod
29    def start(value: int) -> BaseAttribute:
30        """
31        "ol" attribute: start
32        Starting value of the list
33
34        Args:
35            value:
36                Valid integer
37
38        Returns:
39            An start attribute to be added to your element
40
41        """
42
43        return BaseAttribute("start", value)
44
45    @staticmethod
46    def type(value: Literal["1", "a", "A", "i", "I"]) -> BaseAttribute:
47        """
48        "ol" attribute: type
49        Kind of list marker
50
51        Args:
52            value:
53                ['1', 'a', 'A', 'i', 'I']
54
55        Returns:
56            An type attribute to be added to your element
57
58        """
59
60        return BaseAttribute("type", value)
class OlAttrs:
 6class OlAttrs:
 7    """
 8    This module contains functions for attributes in the 'ol' element.
 9    Which is inherited by a class so we can generate type hints
10    """
11
12    @staticmethod
13    def reversed(value: bool) -> BaseAttribute:
14        """
15        "ol" attribute: reversed
16        Number the list backwards
17
18        Args:
19            value:
20                Boolean attribute
21
22        Returns:
23            An reversed attribute to be added to your element
24
25        """
26
27        return BaseAttribute("reversed", value)
28
29    @staticmethod
30    def start(value: int) -> BaseAttribute:
31        """
32        "ol" attribute: start
33        Starting value of the list
34
35        Args:
36            value:
37                Valid integer
38
39        Returns:
40            An start attribute to be added to your element
41
42        """
43
44        return BaseAttribute("start", value)
45
46    @staticmethod
47    def type(value: Literal["1", "a", "A", "i", "I"]) -> BaseAttribute:
48        """
49        "ol" attribute: type
50        Kind of list marker
51
52        Args:
53            value:
54                ['1', 'a', 'A', 'i', 'I']
55
56        Returns:
57            An type attribute to be added to your element
58
59        """
60
61        return BaseAttribute("type", value)

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

@staticmethod
def reversed(value: bool) -> html_compose.base_attribute.BaseAttribute:
12    @staticmethod
13    def reversed(value: bool) -> BaseAttribute:
14        """
15        "ol" attribute: reversed
16        Number the list backwards
17
18        Args:
19            value:
20                Boolean attribute
21
22        Returns:
23            An reversed attribute to be added to your element
24
25        """
26
27        return BaseAttribute("reversed", value)

"ol" attribute: reversed Number the list backwards

Args: value: Boolean attribute

Returns: An reversed attribute to be added to your element

@staticmethod
def start(value: int) -> html_compose.base_attribute.BaseAttribute:
29    @staticmethod
30    def start(value: int) -> BaseAttribute:
31        """
32        "ol" attribute: start
33        Starting value of the list
34
35        Args:
36            value:
37                Valid integer
38
39        Returns:
40            An start attribute to be added to your element
41
42        """
43
44        return BaseAttribute("start", value)

"ol" attribute: start Starting value of the list

Args: value: Valid integer

Returns: An start attribute to be added to your element

@staticmethod
def type( value: Literal['1', 'a', 'A', 'i', 'I']) -> html_compose.base_attribute.BaseAttribute:
46    @staticmethod
47    def type(value: Literal["1", "a", "A", "i", "I"]) -> BaseAttribute:
48        """
49        "ol" attribute: type
50        Kind of list marker
51
52        Args:
53            value:
54                ['1', 'a', 'A', 'i', 'I']
55
56        Returns:
57            An type attribute to be added to your element
58
59        """
60
61        return BaseAttribute("type", value)

"ol" attribute: type Kind of list marker

Args: value: ['1', 'a', 'A', 'i', 'I']

Returns: An type attribute to be added to your element