Struct silkenweb_html::elements::TdBuilder
source · pub struct TdBuilder(_);
Implementations§
source§impl TdBuilder
impl TdBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
sourcepub fn colspan(self, value: impl AttributeValue<String>) -> Self
pub fn colspan(self, value: impl AttributeValue<String>) -> Self
This attribute contains a non-negative integer value that indicates for how many columns the cell extends. Its default value is 1. Values higher than 1000 will be considered as incorrect and will be set to the default value (1).
sourcepub fn headers(self, value: impl AttributeValue<String>) -> Self
pub fn headers(self, value: impl AttributeValue<String>) -> Self
This attribute contains a list of space-separated strings, each corresponding to the id
attribute of the <th>
elements that apply to this element.
sourcepub fn rowspan(self, value: impl AttributeValue<String>) -> Self
pub fn rowspan(self, value: impl AttributeValue<String>) -> Self
This attribute contains a non-negative integer value that indicates for how many rows
the cell extends. Its default value is 1; if its value is set to 0, it extends until the
end of the table section (<thead>
, <tbody>
, <tfoot>
, even if implicitly defined),
that the cell belongs to. Values higher than 65534 are clipped down to 65534.