[][src]Struct moxie_dom::elements::table::ThBuilder

#[must_use = "needs to be built"]pub struct ThBuilder { /* fields omitted */ }

The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.

A type for initializing the element's attributes before calling build.

Implementations

impl ThBuilder[src]

pub fn build(self) -> Th[src]

Initialize the element with all of the attributes so far.

impl ThBuilder[src]

pub fn abbr(self, to_set: impl ToString) -> Self[src]

This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.

pub fn colspan(self, to_set: impl ToString) -> Self[src]

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).

pub fn headers(self, to_set: impl ToString) -> Self[src]

This attribute contains a list of space-separated strings, each corresponding to the id attribute of the elements that apply to this element.

pub fn rowspan(self, to_set: impl ToString) -> Self[src]

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 (, , , even if implicitly defined), that the cell belongs to. Values higher than 65534 are clipped down to 65534.

pub fn scope(self, to_set: impl ToString) -> Self[src]

This enumerated attribute defines the cells that the header (defined in the ) element relates to. It may have the following values: