html_compose.attributes.base_attrs

 1from . import BaseAttribute
 2
 3
 4class BaseAttrs:
 5    """
 6    This module contains functions for attributes in the 'base' element.
 7    Which is inherited by a class so we can generate type hints
 8    """
 9
10    @staticmethod
11    def href(value) -> BaseAttribute:
12        """
13        "base" attribute: href
14        Document base URL
15
16        Args:
17            value:
18                Valid URL potentially surrounded by spaces
19
20        Returns:
21            An href attribute to be added to your element
22
23        """
24
25        return BaseAttribute("href", value)
26
27    @staticmethod
28    def target(value) -> BaseAttribute:
29        """
30        "base" attribute: target
31        Default navigable for hyperlink navigation and form submission
32
33        Args:
34            value:
35                Valid navigable target name or keyword
36
37        Returns:
38            An target attribute to be added to your element
39
40        """
41
42        return BaseAttribute("target", value)
class BaseAttrs:
 5class BaseAttrs:
 6    """
 7    This module contains functions for attributes in the 'base' element.
 8    Which is inherited by a class so we can generate type hints
 9    """
10
11    @staticmethod
12    def href(value) -> BaseAttribute:
13        """
14        "base" attribute: href
15        Document base URL
16
17        Args:
18            value:
19                Valid URL potentially surrounded by spaces
20
21        Returns:
22            An href attribute to be added to your element
23
24        """
25
26        return BaseAttribute("href", value)
27
28    @staticmethod
29    def target(value) -> BaseAttribute:
30        """
31        "base" attribute: target
32        Default navigable for hyperlink navigation and form submission
33
34        Args:
35            value:
36                Valid navigable target name or keyword
37
38        Returns:
39            An target attribute to be added to your element
40
41        """
42
43        return BaseAttribute("target", value)

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

@staticmethod
def href(value) -> html_compose.base_attribute.BaseAttribute:
11    @staticmethod
12    def href(value) -> BaseAttribute:
13        """
14        "base" attribute: href
15        Document base URL
16
17        Args:
18            value:
19                Valid URL potentially surrounded by spaces
20
21        Returns:
22            An href attribute to be added to your element
23
24        """
25
26        return BaseAttribute("href", value)

"base" attribute: href Document base URL

Args: value: Valid URL potentially surrounded by spaces

Returns: An href attribute to be added to your element

@staticmethod
def target(value) -> html_compose.base_attribute.BaseAttribute:
28    @staticmethod
29    def target(value) -> BaseAttribute:
30        """
31        "base" attribute: target
32        Default navigable for hyperlink navigation and form submission
33
34        Args:
35            value:
36                Valid navigable target name or keyword
37
38        Returns:
39            An target attribute to be added to your element
40
41        """
42
43        return BaseAttribute("target", value)

"base" attribute: target Default navigable for hyperlink navigation and form submission

Args: value: Valid navigable target name or keyword

Returns: An target attribute to be added to your element