Components

SaveBar

New, Cancel and Save actions for an editor.

Accessibility role
group
Examples
3
Source
save-bar.dsf:6:1

Preview

Default configuration: every property, variant and state at its default, every context axis at its default.

New
Cancel
Save
Static preview computed from the reference semantics; native targets render with platform controls.

API

Properties

NameTypeDefaultBindingDescription
dirtybooleanfalseinputUnsaved changes exist. Save is disabled otherwise.
new_labelstring"New"input—
cancel_labelstring"Cancel"input—
save_labelstring"Save"input—

Events

NamePayload
create—
cancel—
save—

Accessibility

AttributeValue
rolegroup

Anatomy

Examples

save-bar-forwards-create

Verified by the reference semantics

Configuration

Every value at its default.

Inputs

  1. new:activation

Expectations

Events emitted: create

Present: new, cancel, save, new-icon

Node values

NodeAttributeExpected value
rootgapdp(8)
rootpaddinginsets(dp(12))
New
Cancel
Save
Static preview computed from the reference semantics; native targets render with platform controls. The preview shows the configuration after the inputs or steps.

save-bar-save-needs-changes

Verified by the reference semantics

Configuration

Every value at its default.

Inputs

  1. save:activation
  2. cancel:activation

Expectations

Events emitted: cancel

New
Cancel
Save
Static preview computed from the reference semantics; native targets render with platform controls. The preview shows the configuration after the inputs or steps.

save-bar-saves-changes

Verified by the reference semantics

Configuration

Properties
  • dirty = true

Inputs

  1. save:activation

Expectations

Events emitted: save

New
Cancel
Save
Static preview computed from the reference semantics; native targets render with platform controls. The preview shows the configuration after the inputs or steps.