html_compose.attributes.td_attrs
1from . import BaseAttribute 2from ..base_types import Resolvable 3 4 5class TdAttrs: 6 """ 7 This module contains functions for attributes in the 'td' element. 8 Which is inherited by a class so we can generate type hints 9 """ 10 11 @staticmethod 12 def colspan(value) -> BaseAttribute: 13 """ 14 "td" attribute: colspan 15 Number of columns that the cell is to span 16 17 Args: 18 value: 19 Valid non-negative integer greater than zero 20 21 Returns: 22 An colspan attribute to be added to your element 23 24 """ 25 26 return BaseAttribute("colspan", value) 27 28 @staticmethod 29 def headers(value: Resolvable) -> BaseAttribute: 30 """ 31 "td" attribute: headers 32 The header cells for this cell 33 34 Args: 35 value: 36 Unordered set of unique space-separated tokens consisting of IDs* 37 38 Returns: 39 An headers attribute to be added to your element 40 41 """ 42 43 return BaseAttribute("headers", value) 44 45 @staticmethod 46 def rowspan(value: int) -> BaseAttribute: 47 """ 48 "td" attribute: rowspan 49 Number of rows that the cell is to span 50 51 Args: 52 value: 53 Valid non-negative integer 54 55 Returns: 56 An rowspan attribute to be added to your element 57 58 """ 59 60 return BaseAttribute("rowspan", value)
class
TdAttrs:
6class TdAttrs: 7 """ 8 This module contains functions for attributes in the 'td' element. 9 Which is inherited by a class so we can generate type hints 10 """ 11 12 @staticmethod 13 def colspan(value) -> BaseAttribute: 14 """ 15 "td" attribute: colspan 16 Number of columns that the cell is to span 17 18 Args: 19 value: 20 Valid non-negative integer greater than zero 21 22 Returns: 23 An colspan attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("colspan", value) 28 29 @staticmethod 30 def headers(value: Resolvable) -> BaseAttribute: 31 """ 32 "td" attribute: headers 33 The header cells for this cell 34 35 Args: 36 value: 37 Unordered set of unique space-separated tokens consisting of IDs* 38 39 Returns: 40 An headers attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("headers", value) 45 46 @staticmethod 47 def rowspan(value: int) -> BaseAttribute: 48 """ 49 "td" attribute: rowspan 50 Number of rows that the cell is to span 51 52 Args: 53 value: 54 Valid non-negative integer 55 56 Returns: 57 An rowspan attribute to be added to your element 58 59 """ 60 61 return BaseAttribute("rowspan", value)
This module contains functions for attributes in the 'td' element. Which is inherited by a class so we can generate type hints
12 @staticmethod 13 def colspan(value) -> BaseAttribute: 14 """ 15 "td" attribute: colspan 16 Number of columns that the cell is to span 17 18 Args: 19 value: 20 Valid non-negative integer greater than zero 21 22 Returns: 23 An colspan attribute to be added to your element 24 25 """ 26 27 return BaseAttribute("colspan", value)
"td" attribute: colspan Number of columns that the cell is to span
Args: value: Valid non-negative integer greater than zero
Returns: An colspan attribute to be added to your element
@staticmethod
def
headers( value: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]) -> html_compose.base_attribute.BaseAttribute:
29 @staticmethod 30 def headers(value: Resolvable) -> BaseAttribute: 31 """ 32 "td" attribute: headers 33 The header cells for this cell 34 35 Args: 36 value: 37 Unordered set of unique space-separated tokens consisting of IDs* 38 39 Returns: 40 An headers attribute to be added to your element 41 42 """ 43 44 return BaseAttribute("headers", value)
"td" attribute: headers The header cells for this cell
Args: value: Unordered set of unique space-separated tokens consisting of IDs*
Returns: An headers attribute to be added to your element
46 @staticmethod 47 def rowspan(value: int) -> BaseAttribute: 48 """ 49 "td" attribute: rowspan 50 Number of rows that the cell is to span 51 52 Args: 53 value: 54 Valid non-negative integer 55 56 Returns: 57 An rowspan attribute to be added to your element 58 59 """ 60 61 return BaseAttribute("rowspan", value)
"td" attribute: rowspan Number of rows that the cell is to span
Args: value: Valid non-negative integer
Returns: An rowspan attribute to be added to your element