widget-form-info
App: Backend
Source: web/projects/backend/src/widgets/widget-form-info
Purpose
Provides a lightweight summary of the currently viewed form inside object dashboards. It surfaces status, owner metadata, and a shortcut to edit the base form record.
Inputs & State
- Receives a
FormWithRelationsobservable via the widgetstateinput. - Uses the shared
statusesdictionary (1=draft, 2=active, 3=archived) to render chips.
Behaviour
- Displays name, status badge, category, creator, and description.
openEditForm()launchesFormManagmentDialog(formForm) with the current form as dialog data.- After the dialog is closed, it dispatches
FindOneFormto refresh NgXSFormState, ensuring other widgets on the dashboard pick up edits immediately.
Extension Tips
- Add additional metadata (e.g., last revision ID) by extending
FormWithRelationsinclude list in the dashboard wrapper. - Hook additional actions (duplicate, archive) by adding more menu items that call the relevant SDK services.