html_compose.attributes.template_attrs
1from . import BaseAttribute 2from typing import Literal 3 4 5class TemplateAttrs: 6 """ 7 This module contains functions for attributes in the 'template' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def shadowrootclonable(value: bool) -> BaseAttribute: 13 """ 14 "template" attribute: shadowrootclonable 15 Sets clonable on a declarative shadow root 16 17 Args: 18 value: 19 Boolean attribute 20 21 Returns: 22 An shadowrootclonable attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("shadowrootclonable", value) 27 28 @staticmethod 29 def shadowrootdelegatesfocus(value: bool) -> BaseAttribute: 30 """ 31 "template" attribute: shadowrootdelegatesfocus 32 Sets delegates focus on a declarative shadow root 33 34 Args: 35 value: 36 Boolean attribute 37 38 Returns: 39 An shadowrootdelegatesfocus attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("shadowrootdelegatesfocus", value) 44 45 @staticmethod 46 def shadowrootmode(value: Literal["open", "closed"]) -> BaseAttribute: 47 """ 48 "template" attribute: shadowrootmode 49 Enables streaming declarative shadow roots 50 51 Args: 52 value: 53 ['open', 'closed'] 54 55 Returns: 56 An shadowrootmode attribute to be added to your element 57 58 """ 59 60 return BaseAttribute("shadowrootmode", value) 61 62 @staticmethod 63 def shadowrootserializable(value: bool) -> BaseAttribute: 64 """ 65 "template" attribute: shadowrootserializable 66 Sets serializable on a declarative shadow root 67 68 Args: 69 value: 70 Boolean attribute 71 72 Returns: 73 An shadowrootserializable attribute to be added to your element 74 75 """ 76 77 return BaseAttribute("shadowrootserializable", value)
6class TemplateAttrs: 7 """ 8 This module contains functions for attributes in the 'template' element. 9 Which is inherited by a class so we can generate type hints 10 """ 11 12 @staticmethod 13 def shadowrootclonable(value: bool) -> BaseAttribute: 14 """ 15 "template" attribute: shadowrootclonable 16 Sets clonable on a declarative shadow root 17 18 Args: 19 value: 20 Boolean attribute 21 22 Returns: 23 An shadowrootclonable attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("shadowrootclonable", value) 28 29 @staticmethod 30 def shadowrootdelegatesfocus(value: bool) -> BaseAttribute: 31 """ 32 "template" attribute: shadowrootdelegatesfocus 33 Sets delegates focus on a declarative shadow root 34 35 Args: 36 value: 37 Boolean attribute 38 39 Returns: 40 An shadowrootdelegatesfocus attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("shadowrootdelegatesfocus", value) 45 46 @staticmethod 47 def shadowrootmode(value: Literal["open", "closed"]) -> BaseAttribute: 48 """ 49 "template" attribute: shadowrootmode 50 Enables streaming declarative shadow roots 51 52 Args: 53 value: 54 ['open', 'closed'] 55 56 Returns: 57 An shadowrootmode attribute to be added to your element 58 59 """ 60 61 return BaseAttribute("shadowrootmode", value) 62 63 @staticmethod 64 def shadowrootserializable(value: bool) -> BaseAttribute: 65 """ 66 "template" attribute: shadowrootserializable 67 Sets serializable on a declarative shadow root 68 69 Args: 70 value: 71 Boolean attribute 72 73 Returns: 74 An shadowrootserializable attribute to be added to your element 75 76 """ 77 78 return BaseAttribute("shadowrootserializable", value)
This module contains functions for attributes in the 'template' element. Which is inherited by a class so we can generate type hints
12 @staticmethod 13 def shadowrootclonable(value: bool) -> BaseAttribute: 14 """ 15 "template" attribute: shadowrootclonable 16 Sets clonable on a declarative shadow root 17 18 Args: 19 value: 20 Boolean attribute 21 22 Returns: 23 An shadowrootclonable attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("shadowrootclonable", value)
"template" attribute: shadowrootclonable Sets clonable on a declarative shadow root
Args: value: Boolean attribute
Returns: An shadowrootclonable attribute to be added to your element
29 @staticmethod 30 def shadowrootdelegatesfocus(value: bool) -> BaseAttribute: 31 """ 32 "template" attribute: shadowrootdelegatesfocus 33 Sets delegates focus on a declarative shadow root 34 35 Args: 36 value: 37 Boolean attribute 38 39 Returns: 40 An shadowrootdelegatesfocus attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("shadowrootdelegatesfocus", value)
"template" attribute: shadowrootdelegatesfocus Sets delegates focus on a declarative shadow root
Args: value: Boolean attribute
Returns: An shadowrootdelegatesfocus attribute to be added to your element
46 @staticmethod 47 def shadowrootmode(value: Literal["open", "closed"]) -> BaseAttribute: 48 """ 49 "template" attribute: shadowrootmode 50 Enables streaming declarative shadow roots 51 52 Args: 53 value: 54 ['open', 'closed'] 55 56 Returns: 57 An shadowrootmode attribute to be added to your element 58 59 """ 60 61 return BaseAttribute("shadowrootmode", value)
"template" attribute: shadowrootmode Enables streaming declarative shadow roots
Args: value: ['open', 'closed']
Returns: An shadowrootmode attribute to be added to your element
63 @staticmethod 64 def shadowrootserializable(value: bool) -> BaseAttribute: 65 """ 66 "template" attribute: shadowrootserializable 67 Sets serializable on a declarative shadow root 68 69 Args: 70 value: 71 Boolean attribute 72 73 Returns: 74 An shadowrootserializable attribute to be added to your element 75 76 """ 77 78 return BaseAttribute("shadowrootserializable", value)
"template" attribute: shadowrootserializable Sets serializable on a declarative shadow root
Args: value: Boolean attribute
Returns: An shadowrootserializable attribute to be added to your element