mmo-specimen
1 symbol · generated 30 Sep 2026
mmo-specimen
mmo-specimen.jhs:1One specimen of the design system: a live example, and the html that produced it.
- Extends
- CustomShadowElement
Index
| label | the caption of the specimen | |
| note | one line saying what the variants below are for | |
| ground | the ground the example is shown on: surface, bg or ink | |
| layout | how the examples are arranged: row (default), column, grid or block | |
| code | open to show the html, closed to fold it away behind the toggle | |
| tocTimer static | one rebuild of the page's table of contents for all the specimens of a page, not one each | |
| ground accessor | The ground the example is currently shown on. | |
| constructor() | ||
| init() | ||
| load() | Read the example back from the light dom and fill the code panel. | |
| clean(html) | What the page's own tooling wrote into the example on its way past -- the id a table of contents anchors a heading with. | |
| hideFromToc() | The headings of an example are not sections of the page. | |
| dedent(html) | The markup as a page would write it: tabs expanded, the blank lines around it dropped and the template's own indentation taken off, so the html reads from column zero whatever depth the specimen si… | |
| cycleGround() | Show the example on the next ground: what looks right on white can vanish on ink. | |
| toggleCode() | Fold the html away, or bring it back. | |
| copy() | Copy the html of the example. | |
| (default) | the example itself, written exactly as a page would write it | |
| .plain | drop the frame, for a specimen that is already a full-width block |
Attributes5
label
mmo-specimen.jhsthe caption of the specimen
label=""
note
mmo-specimen.jhsone line saying what the variants below are for
note=""
ground
mmo-specimen.jhsthe ground the example is shown on: surface, bg or ink
ground="surface"
layout
mmo-specimen.jhshow the examples are arranged: row (default), column, grid or block
layout="row"
code
mmo-specimen.jhsopen to show the html, closed to fold it away behind the toggle
code="open"
Properties2
tocTimer
staticmmo-specimen.jhs:52one rebuild of the page's table of contents for all the specimens of a page, not one each
ground
accessormmo-specimen.jhs:134The ground the example is currently shown on.
- Type
string
Methods9
constructor()
mmo-specimen.jhs:54init()
mmo-specimen.jhs:59load()
mmo-specimen.jhs:69Read the example back from the light dom and fill the code panel.
| returns | void |
clean(html)
mmo-specimen.jhs:85What the page's own tooling wrote into the example on its way past -- the id a table of contents anchors a heading with. It is not part of the specimen's html, so it is not shown as if it were.
| html | string | |
| returns | string |
hideFromToc()
mmo-specimen.jhs:94The headings of an example are not sections of the page. Mark them, drop the anchors a table of contents may already have given them, and ask it to rebuild -- once for the whole page.
| returns | void |
dedent(html)
mmo-specimen.jhs:114The markup as a page would write it: tabs expanded, the blank lines around it dropped and the template's own indentation taken off, so the html reads from column zero whatever depth the specimen sits at in the page.
| html | string | |
| returns | string | the dedented source |
cycleGround()
mmo-specimen.jhs:142Show the example on the next ground: what looks right on white can vanish on ink.
| returns | void |
toggleCode()
mmo-specimen.jhs:151Fold the html away, or bring it back.
| returns | void |
copy()
mmo-specimen.jhs:159Copy the html of the example.
| returns | void |
Slots1
(default)
mmo-specimen.jhsthe example itself, written exactly as a page would write it
<slot>
CSS hooks1
.plain
mmo-specimen.jhsdrop the frame, for a specimen that is already a full-width block
.plain