Manual local-view switching with retained panels. Use cem-nav for links and cem-stepper for workflow progress.
Full examples and variation matrix · Property playground · Automated stories
Arrow keys on the orientation axis and Home/End browse enabled tabs. Enter/Space activates. Focus browsing never changes selection; leaving restores the selected entry stop. Edit a panel field and switch away and back to check retention.
{slice @name=label | Workspace views}
{cem-field @label="label" @value="{$datadom.slices.label}" @slice=label @slice-event=input @slice-value="$target.value"}
{slice @name=selected-index | 0}
{cem-field @label="selected-index" @value="{$datadom.slices.selected-index}" @slice=selected-index @slice-event=input @slice-value="$target.value"}
{slice @name=second-label | Files}
{cem-field @label="second-label" @value="{$datadom.slices.second-label}" @slice=second-label @slice-event=input @slice-value="$target.value"}
{slice @name=aria-label | }
{cem-field @label="aria-label" @value="{$datadom.slices.aria-label}" @slice=aria-label @slice-event=input @slice-value="$target.value"}
{slice @name=class | }
{cem-field @label="class" @value="{$datadom.slices.class}" @slice=class @slice-event=input @slice-value="$target.value"}
{slice @name=dir | ltr}
{fieldset @role=group @aria-label="dir" @slice=dir @slice-event=change @slice-value="$target.value" | {legend | dir}{cem-radio @name="property-dir" @value="ltr" @label="ltr" @checked={if datadom.slices.dir == "ltr" {true} else {null}}}{cem-radio @name="property-dir" @value="rtl" @label="rtl" @checked={if datadom.slices.dir == "rtl" {true} else {null}}}}
{slice @name=hidden | absent}
{fieldset @role=group @aria-label="hidden" @slice=hidden @slice-event=change @slice-value="$target.value" | {legend | hidden}{cem-radio @name="property-hidden" @value="absent" @label="absent" @checked={if datadom.slices.hidden == "absent" {true} else {null}}}{cem-radio @name="property-hidden" @value="present" @label="present" @checked={if datadom.slices.hidden == "present" {true} else {null}}}}
{slice @name=orientation | horizontal}
{fieldset @role=group @aria-label="orientation" @slice=orientation @slice-event=change @slice-value="$target.value" | {legend | orientation}{cem-radio @name="property-orientation" @value="horizontal" @label="horizontal" @checked={if datadom.slices.orientation == "horizontal" {true} else {null}}}{cem-radio @name="property-orientation" @value="vertical" @label="vertical" @checked={if datadom.slices.orientation == "vertical" {true} else {null}}}}
{cem-tabs @label="{$datadom.slices.label}" @selected-index="{$datadom.slices.selected-index}" @orientation="{$datadom.slices.orientation}" @class="{$datadom.slices.class}" @dir="{$datadom.slices.dir}" @aria-label={if datadom.slices.aria-label {datadom.slices.aria-label} else {null}} @hidden={if datadom.slices.hidden == "present" {true} else {null}} | {cem-tab @value=overview @label=Overview | {label | Retained note {input @value=Draft}}}{cem-tab @value=files @label="{$datadom.slices.second-label}" | {p | Files panel}}{cem-tab @value=locked @label=Locked @disabled=true | {p | Unavailable panel}}}{cem-module-url @slice=sourceUrl @src="@epa-wg/cem-components/components/cem-tabs/cem-tabs.xhtml"}{cem:if @test="datadom.slices.sourceUrl" | {p | {a @href="{$datadom.slices.sourceUrl}" | Open canonical XHTML}}{cem-demo-element @legend="Canonical source" @src="{$datadom.slices.sourceUrl}" @type=xml @demo=false}}