shinbun-components

<shinbun-table>

Wrapper for a real `table`. The wrapper keeps native table semantics: the inner `table` gets the shinbun-css classes, and cells with `num` are right-aligned. Tables are always set horizontally.

Example

表
A12.5
<shinbun-paper dan="4" chars="8" font-size="0.8rem">
  <shinbun-page>
    <shinbun-table span="3">
      <table>
        <caption>表</caption>
        <tbody><tr><th scope="row">A</th><td num>12.5</td></tr></tbody>
      </table>
    </shinbun-table>
  </shinbun-page>
</shinbun-paper>

Attributes

NameTypeDescription
tvbooleanCompact TV-listing style
spannumberNumber of columns (1-15)
ynumberStart column (1-15)
xnumberStart position on the line axis (1-60)
wnumberLines occupied on the line axis (1-60)

Properties

None

Methods

None

Slots

NameDescription
(default)A `table` element

CSS custom properties

None