html_compose.attributes.embed_attrs
1from . import BaseAttribute 2 3 4class EmbedAttrs: 5 """ 6 This module contains functions for attributes in the 'embed' element. 7 Which is inherited by a class so we can generate type hints 8 """ 9 10 @staticmethod 11 def height(value: int) -> BaseAttribute: 12 """ 13 "embed" attribute: height 14 Vertical dimension 15 16 Args: 17 value: 18 Valid non-negative integer 19 20 Returns: 21 An height attribute to be added to your element 22 23 """ 24 25 return BaseAttribute("height", value) 26 27 @staticmethod 28 def src(value) -> BaseAttribute: 29 """ 30 "embed" attribute: src 31 Address of the resource 32 33 Args: 34 value: 35 Valid non-empty URL potentially surrounded by spaces 36 37 Returns: 38 An src attribute to be added to your element 39 40 """ 41 42 return BaseAttribute("src", value) 43 44 @staticmethod 45 def type(value) -> BaseAttribute: 46 """ 47 "embed" attribute: type 48 Type of embedded resource 49 50 Args: 51 value: 52 Valid MIME type string 53 54 Returns: 55 An type attribute to be added to your element 56 57 """ 58 59 return BaseAttribute("type", value) 60 61 @staticmethod 62 def width(value: int) -> BaseAttribute: 63 """ 64 "embed" attribute: width 65 Horizontal dimension 66 67 Args: 68 value: 69 Valid non-negative integer 70 71 Returns: 72 An width attribute to be added to your element 73 74 """ 75 76 return BaseAttribute("width", value)
5class EmbedAttrs: 6 """ 7 This module contains functions for attributes in the 'embed' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def height(value: int) -> BaseAttribute: 13 """ 14 "embed" attribute: height 15 Vertical dimension 16 17 Args: 18 value: 19 Valid non-negative integer 20 21 Returns: 22 An height attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("height", value) 27 28 @staticmethod 29 def src(value) -> BaseAttribute: 30 """ 31 "embed" attribute: src 32 Address of the resource 33 34 Args: 35 value: 36 Valid non-empty URL potentially surrounded by spaces 37 38 Returns: 39 An src attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("src", value) 44 45 @staticmethod 46 def type(value) -> BaseAttribute: 47 """ 48 "embed" attribute: type 49 Type of embedded resource 50 51 Args: 52 value: 53 Valid MIME type string 54 55 Returns: 56 An type attribute to be added to your element 57 58 """ 59 60 return BaseAttribute("type", value) 61 62 @staticmethod 63 def width(value: int) -> BaseAttribute: 64 """ 65 "embed" attribute: width 66 Horizontal dimension 67 68 Args: 69 value: 70 Valid non-negative integer 71 72 Returns: 73 An width attribute to be added to your element 74 75 """ 76 77 return BaseAttribute("width", value)
This module contains functions for attributes in the 'embed' element. Which is inherited by a class so we can generate type hints
11 @staticmethod 12 def height(value: int) -> BaseAttribute: 13 """ 14 "embed" attribute: height 15 Vertical dimension 16 17 Args: 18 value: 19 Valid non-negative integer 20 21 Returns: 22 An height attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("height", value)
"embed" attribute: height Vertical dimension
Args: value: Valid non-negative integer
Returns: An height attribute to be added to your element
28 @staticmethod 29 def src(value) -> BaseAttribute: 30 """ 31 "embed" attribute: src 32 Address of the resource 33 34 Args: 35 value: 36 Valid non-empty URL potentially surrounded by spaces 37 38 Returns: 39 An src attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("src", value)
"embed" attribute: src Address of the resource
Args: value: Valid non-empty URL potentially surrounded by spaces
Returns: An src attribute to be added to your element
45 @staticmethod 46 def type(value) -> BaseAttribute: 47 """ 48 "embed" attribute: type 49 Type of embedded resource 50 51 Args: 52 value: 53 Valid MIME type string 54 55 Returns: 56 An type attribute to be added to your element 57 58 """ 59 60 return BaseAttribute("type", value)
"embed" attribute: type Type of embedded resource
Args: value: Valid MIME type string
Returns: An type attribute to be added to your element
62 @staticmethod 63 def width(value: int) -> BaseAttribute: 64 """ 65 "embed" attribute: width 66 Horizontal dimension 67 68 Args: 69 value: 70 Valid non-negative integer 71 72 Returns: 73 An width attribute to be added to your element 74 75 """ 76 77 return BaseAttribute("width", value)
"embed" attribute: width Horizontal dimension
Args: value: Valid non-negative integer
Returns: An width attribute to be added to your element