scripts.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. """Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
  2. from typing import Optional, Union
  3. from reflex.vars import Var as Var
  4. from .base import BaseHTML
  5. class Canvas(BaseHTML):
  6. """Display the canvas element."""
  7. tag = "canvas"
  8. class Noscript(BaseHTML):
  9. """Display the noscript element."""
  10. tag = "noscript"
  11. # No unique attributes, only common ones are inherited
  12. class Script(BaseHTML):
  13. """Display the script element."""
  14. tag = "script"
  15. # Indicates that the script should be executed asynchronously
  16. async_: Optional[Var[Union[str, int, bool]]] = None
  17. # Character encoding of the external script
  18. char_set: Optional[Var[Union[str, int, bool]]] = None
  19. # Configures the CORS requests for the script
  20. cross_origin: Optional[Var[Union[str, int, bool]]] = None
  21. # Indicates that the script should be executed after the page has finished parsing
  22. defer: Optional[Var[Union[str, int, bool]]] = None
  23. # Security feature allowing browsers to verify what they fetch
  24. integrity: Optional[Var[Union[str, int, bool]]] = None
  25. # Specifies the scripting language used in the type attribute
  26. language: Optional[Var[Union[str, int, bool]]] = None
  27. # Specifies which referrer information to send when fetching the script
  28. referrer_policy: Optional[Var[Union[str, int, bool]]] = None
  29. # URL of an external script
  30. src: Optional[Var[Union[str, int, bool]]] = None
  31. # Specifies the MIME type of the script
  32. type: Optional[Var[Union[str, int, bool]]] = None