← All Components
<mth-saved-views>
Saved table/board view tabs (<mth-saved-views>) with create, duplicate, pin, and delete actions powered by SelectionController and RTL-aware RovingFocusController.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready · interact with <mth-saved-views>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/admin/saved-views"></script>
<mth-saved-views allow-create allow-manage></mth-saved-views>import '@methane-ui/admin/saved-views';
import '@methane-ui/react';
export function Example() {
return <mth-saved-views allow-create allow-manage></mth-saved-views>;
}<script setup lang="ts">
import '@methane-ui/admin/saved-views';
</script>
<template>
<mth-saved-views allow-create allow-manage></mth-saved-views>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/admin/saved-views';
import { MthSavedViewsDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthSavedViewsDirective],
template: `<mth-saved-views allow-create allow-manage></mth-saved-views>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/admin/saved-views';
import MthSavedViews from '@methane-ui/svelte/MthSavedViews.svelte';
</script>
<MthSavedViews allow-create allow-manage></MthSavedViews>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
views | — | ReadonlyArray<unknown> | — | Array of saved view definitions. |
activeViewId | active-view-id | string | "" | Currently selected saved view ID. |
allowCreate | allow-create | boolean | true | Shows create view trigger. |
allowManage | allow-manage | boolean | true | Shows duplicate, pin, and delete controls for the active view. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-view-select | { id: string } | Emitted when the active saved view changes. |
mth-view-create | { view: unknown } | Emitted when a new saved view is created. |
mth-view-duplicate | { id: string; copy: unknown } | Emitted when the active view is duplicated. |
mth-view-pin | { id: string; pinned: boolean } | Emitted when the active view pin state toggles. |
mth-view-delete | { id: string } | Emitted when a saved view is deleted. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowRight | ltr | tablist has focus | moves focus to next saved view tab |
| ArrowLeft | rtl | tablist has focus in RTL | moves focus to next saved view tab |
| Home | both | tablist has focus | moves focus to first saved view tab |
| End | both | tablist has focus | moves focus to last saved view tab |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | delegatesFocus: true with zero host internals.role (ADR-014). | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 4 APG keyboard transitions across LTR/RTL. | mth-saved-views.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(empty). | Conformance suite |
| i18n | Routes 8 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |