DBX Form Actions

Integrates Angular forms with the dbxAction system for submission.

13|Updated Jan 7, 2022
One-click install
npx skills add https://github.com/dereekb/dbx-components --skill dbx-form-actions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: DBX Form Actions
Source: https://github.com/dereekb/dbx-components/tree/main/.agent/skills/dereekb-dbx-form-actions
Command: npx skills add https://github.com/dereekb/dbx-components --skill dbx-form-actions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines the integration of Angular forms with the dbxAction system, reducing boilerplate and ensuring consistent validation, modification tracking, and safe action execution.

Core Features & Use Cases

  • Automatic form-to-action binding: binds a DbxMutableForm to an action, providing values on trigger and handling modified/validation states.
  • Flexible validation: supports Angular validators plus custom validation via dbxActionFormIsValid, as well as IsEqual/IsModified for tracking changes.
  • Safe, user-friendly UX: form locking during submission and optional safety dialog for unsaved changes.
  • Real-world use: teams can create robust, reusable form dialogs or embedded forms in dashboards with predictable behavior.

Quick Start

Use a simple template: create a form with dbxActionForm and provide initial values and a submit button; configure isValid and isEqual as needed; then attach [dbxFormSource], [dbxActionFormIsValid], [dbxActionFormIsEqual], and [dbxActionFormMapValue] as necessary, and bind a dbxActionButton to trigger the action.

Frequently Asked Questions about DBX Form Actions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bind Angular form state to an action trigger?

Angular form state binds to an action trigger by connecting a DbxMutableForm to the dbxAction system, automatically passing form values on submission and handling modified or validation states.

What is the best way to lock an Angular form during submission?

Locking an Angular form during submission is handled automatically by the dbxAction system, which ensures safe, user-friendly UX by preventing concurrent modifications while the action executes.

How do I track modified fields in an Angular form action pipeline?

Tracking modified fields in an Angular form action pipeline uses IsEqual and IsModified callbacks, allowing the system to monitor changes against initial values before triggering the action.

Can I use custom validation logic with Angular form actions?

Custom validation logic works with Angular form actions by applying standard Angular validators alongside the dbxActionFormIsValid callback to tailor the action pipeline validation behavior.

How do I add an unsaved changes safety dialog to an Angular form?

An unsaved changes safety dialog integrates into Angular forms through the dbxAction system, providing an optional confirmation step to prevent accidental data loss during form interactions.

Do I need RxJS to manage Angular form actions?

RxJS is required to manage Angular form actions, providing the reactive foundation for the dbxAction system to handle asynchronous form submissions, state mapping, and validation pipelines.