html_compose.attributes.canvas_attrs
1from . import BaseAttribute 2 3 4class CanvasAttrs: 5 """ 6 This module contains functions for attributes in the 'canvas' 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 "canvas" 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 width(value: int) -> BaseAttribute: 29 """ 30 "canvas" attribute: width 31 Horizontal dimension 32 33 Args: 34 value: 35 Valid non-negative integer 36 37 Returns: 38 An width attribute to be added to your element 39 40 """ 41 42 return BaseAttribute("width", value)
class
CanvasAttrs:
5class CanvasAttrs: 6 """ 7 This module contains functions for attributes in the 'canvas' 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 "canvas" 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 width(value: int) -> BaseAttribute: 30 """ 31 "canvas" attribute: width 32 Horizontal dimension 33 34 Args: 35 value: 36 Valid non-negative integer 37 38 Returns: 39 An width attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("width", value)
This module contains functions for attributes in the 'canvas' element. Which is inherited by a class so we can generate type hints
11 @staticmethod 12 def height(value: int) -> BaseAttribute: 13 """ 14 "canvas" 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)
"canvas" attribute: height Vertical dimension
Args: value: Valid non-negative integer
Returns: An height attribute to be added to your element
28 @staticmethod 29 def width(value: int) -> BaseAttribute: 30 """ 31 "canvas" attribute: width 32 Horizontal dimension 33 34 Args: 35 value: 36 Valid non-negative integer 37 38 Returns: 39 An width attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("width", value)
"canvas" attribute: width Horizontal dimension
Args: value: Valid non-negative integer
Returns: An width attribute to be added to your element