VIEW010: unknown-action-type
Event action type is not one Ignition knows
| Code | VIEW010 |
| Name | unknown-action-type |
| Category | View structure (VIEW) |
| Default severity | error |
| Enabled by default | yes |
| Fix available | no |
| ign-lint equivalent | none |
What it does
Section titled “What it does”Reports an event action (view or component events) whose type is not
an action type of Perspective in Ignition 8.3 (script, nav, popup,
dock, alter-dock, login, logout, auth-challenge, theme,
refresh, fullscreen, request-print, console-log, alter-logging,
debug, workstation/mode and the native/* mobile actions), or that has
no type at all.
Why is this bad?
Section titled “Why is this bad?”Perspective cannot run an action it does not know: the event does nothing. This happens after hand edits or when a view is copied from a newer Ignition version.
Example
Section titled “Example”"onClick": {"type": "navigate", "scope": "C", "config": {"page": "/home"}}Use instead:
"onClick": {"type": "nav", "scope": "C", "config": {"page": "/home"}}Generated from the rule metadata by iglint generate-docs; iglint rule VIEW010 prints the same page in the terminal. Source: docs/rules/VIEW010.md.