← All components

Stable 0.7.6 · Prerelease 0.11.0-rc.1

ActionButton

A control whose layout names no action. The application attaches an action to each rendered instance, so one definition serves every row while each row keeps its own state.

What it looks like

Illustration. A drawing of ActionButton for this page, not the SDK rendering it. It is not interactive and calls no service.

Documentation

The SDK documentation owns the technical contract. Choose the release you build against.

Renderers and hosts

Statements below are the SDK’s, for each release. Nothing here adds a host that the SDK does not record.

Stable 0.7.6

  • React Published
  • Lit Source only, not published
  • No guide of this release records a renderer or host qualification for this control. No SDK guide records more.

Prerelease 0.11.0-rc.1

  • React Published
  • Lit Published

Packages and imports

Stable 0.7.6

Entry points of ActionButton at source revision 5995b1f.
ImportPackage versionRole
@saga-a2ui/core/actions/action-button-schema@saga-a2ui/[email protected]Renderer-neutral contract of the control: a strict schema with no action property Source of @saga-a2ui/core/actions/action-button-schema
@saga-a2ui/react/actions@saga-a2ui/[email protected]React control and action setup Source of @saga-a2ui/react/actions
@saga-a2ui/lit/actionsNot published at 0.7.6Lit control and action setup Source of @saga-a2ui/lit/actions

Packages marked “Not published” exist in the source at this revision only. They cannot be installed from the registry at 0.7.6.

Prerelease 0.11.0-rc.1

Entry points of ActionButton at source revision fb4126c.
ImportPackage versionRole
@saga-a2ui/core/actions/action-button-schema@saga-a2ui/[email protected]Renderer-neutral contract of the control: a strict schema with no action property Source of @saga-a2ui/core/actions/action-button-schema
@saga-a2ui/react/actions@saga-a2ui/[email protected]React control and action setup Source of @saga-a2ui/react/actions
@saga-a2ui/lit/actions@saga-a2ui/[email protected]Lit control and action setup Source of @saga-a2ui/lit/actions

From the SDK source

Two ActionButton instances in a row of the notes application's layout. Neither names an action. This is code copied fromexamples/pack1-consumer/src/notes-surface.ts in the Prerelease 0.11.0-rc.1 source. It is not a rendering.

{
  id: 'note-actions',
  component: 'Row',
  children: ['row-read', 'row-archive'],
},
{
  id: 'row-read',
  component: 'ActionButton',
  child: 'row-read-label',
},
{
  id: 'row-read-label',
  component: 'Line',
  kind: 'body',
  text: 'Mark read',
},
{
  id: 'row-archive',
  component: 'ActionButton',
  child: 'row-archive-label',
},
{
  id: 'row-archive-label',
  component: 'Line',
  kind: 'body',
  text: 'Archive',
},

← All components