html_compose.attributes.object_attrs
1from . import BaseAttribute 2 3 4class ObjectAttrs: 5 """ 6 This module contains functions for attributes in the 'object' element. 7 Which is inherited by a class so we can generate type hints 8 """ 9 10 @staticmethod 11 def data(value) -> BaseAttribute: 12 """ 13 "object" attribute: data 14 Address of the resource 15 16 Args: 17 value: 18 Valid non-empty URL potentially surrounded by spaces 19 20 Returns: 21 An data attribute to be added to your element 22 23 """ 24 25 return BaseAttribute("data", value) 26 27 @staticmethod 28 def form(value) -> BaseAttribute: 29 """ 30 "object" attribute: form 31 Associates the element with a form element 32 33 Args: 34 value: 35 ID* 36 37 Returns: 38 An form attribute to be added to your element 39 40 """ 41 42 return BaseAttribute("form", value) 43 44 @staticmethod 45 def height(value: int) -> BaseAttribute: 46 """ 47 "object" attribute: height 48 Vertical dimension 49 50 Args: 51 value: 52 Valid non-negative integer 53 54 Returns: 55 An height attribute to be added to your element 56 57 """ 58 59 return BaseAttribute("height", value) 60 61 @staticmethod 62 def name(value) -> BaseAttribute: 63 """ 64 "object" attribute: name 65 Name of content navigable 66 67 Args: 68 value: 69 Valid navigable target name or keyword 70 71 Returns: 72 An name attribute to be added to your element 73 74 """ 75 76 return BaseAttribute("name", value) 77 78 @staticmethod 79 def type(value) -> BaseAttribute: 80 """ 81 "object" attribute: type 82 Type of embedded resource 83 84 Args: 85 value: 86 Valid MIME type string 87 88 Returns: 89 An type attribute to be added to your element 90 91 """ 92 93 return BaseAttribute("type", value) 94 95 @staticmethod 96 def width(value: int) -> BaseAttribute: 97 """ 98 "object" attribute: width 99 Horizontal dimension 100 101 Args: 102 value: 103 Valid non-negative integer 104 105 Returns: 106 An width attribute to be added to your element 107 108 """ 109 110 return BaseAttribute("width", value)
5class ObjectAttrs: 6 """ 7 This module contains functions for attributes in the 'object' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def data(value) -> BaseAttribute: 13 """ 14 "object" attribute: data 15 Address of the resource 16 17 Args: 18 value: 19 Valid non-empty URL potentially surrounded by spaces 20 21 Returns: 22 An data attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("data", value) 27 28 @staticmethod 29 def form(value) -> BaseAttribute: 30 """ 31 "object" attribute: form 32 Associates the element with a form element 33 34 Args: 35 value: 36 ID* 37 38 Returns: 39 An form attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("form", value) 44 45 @staticmethod 46 def height(value: int) -> BaseAttribute: 47 """ 48 "object" attribute: height 49 Vertical dimension 50 51 Args: 52 value: 53 Valid non-negative integer 54 55 Returns: 56 An height attribute to be added to your element 57 58 """ 59 60 return BaseAttribute("height", value) 61 62 @staticmethod 63 def name(value) -> BaseAttribute: 64 """ 65 "object" attribute: name 66 Name of content navigable 67 68 Args: 69 value: 70 Valid navigable target name or keyword 71 72 Returns: 73 An name attribute to be added to your element 74 75 """ 76 77 return BaseAttribute("name", value) 78 79 @staticmethod 80 def type(value) -> BaseAttribute: 81 """ 82 "object" attribute: type 83 Type of embedded resource 84 85 Args: 86 value: 87 Valid MIME type string 88 89 Returns: 90 An type attribute to be added to your element 91 92 """ 93 94 return BaseAttribute("type", value) 95 96 @staticmethod 97 def width(value: int) -> BaseAttribute: 98 """ 99 "object" attribute: width 100 Horizontal dimension 101 102 Args: 103 value: 104 Valid non-negative integer 105 106 Returns: 107 An width attribute to be added to your element 108 109 """ 110 111 return BaseAttribute("width", value)
This module contains functions for attributes in the 'object' element. Which is inherited by a class so we can generate type hints
11 @staticmethod 12 def data(value) -> BaseAttribute: 13 """ 14 "object" attribute: data 15 Address of the resource 16 17 Args: 18 value: 19 Valid non-empty URL potentially surrounded by spaces 20 21 Returns: 22 An data attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("data", value)
"object" attribute: data Address of the resource
Args: value: Valid non-empty URL potentially surrounded by spaces
Returns: An data attribute to be added to your element
28 @staticmethod 29 def form(value) -> BaseAttribute: 30 """ 31 "object" attribute: form 32 Associates the element with a form element 33 34 Args: 35 value: 36 ID* 37 38 Returns: 39 An form attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("form", value)
"object" attribute: form Associates the element with a form element
Args: value: ID*
Returns: An form attribute to be added to your element
45 @staticmethod 46 def height(value: int) -> BaseAttribute: 47 """ 48 "object" attribute: height 49 Vertical dimension 50 51 Args: 52 value: 53 Valid non-negative integer 54 55 Returns: 56 An height attribute to be added to your element 57 58 """ 59 60 return BaseAttribute("height", value)
"object" attribute: height Vertical dimension
Args: value: Valid non-negative integer
Returns: An height attribute to be added to your element
62 @staticmethod 63 def name(value) -> BaseAttribute: 64 """ 65 "object" attribute: name 66 Name of content navigable 67 68 Args: 69 value: 70 Valid navigable target name or keyword 71 72 Returns: 73 An name attribute to be added to your element 74 75 """ 76 77 return BaseAttribute("name", value)
"object" attribute: name Name of content navigable
Args: value: Valid navigable target name or keyword
Returns: An name attribute to be added to your element
79 @staticmethod 80 def type(value) -> BaseAttribute: 81 """ 82 "object" attribute: type 83 Type of embedded resource 84 85 Args: 86 value: 87 Valid MIME type string 88 89 Returns: 90 An type attribute to be added to your element 91 92 """ 93 94 return BaseAttribute("type", value)
"object" attribute: type Type of embedded resource
Args: value: Valid MIME type string
Returns: An type attribute to be added to your element
96 @staticmethod 97 def width(value: int) -> BaseAttribute: 98 """ 99 "object" attribute: width 100 Horizontal dimension 101 102 Args: 103 value: 104 Valid non-negative integer 105 106 Returns: 107 An width attribute to be added to your element 108 109 """ 110 111 return BaseAttribute("width", value)
"object" attribute: width Horizontal dimension
Args: value: Valid non-negative integer
Returns: An width attribute to be added to your element