src/app/core/admin/admin-primary-action/primary-action-config.ts
Configuration for the floating primary action button.
Properties |
|
| actionType |
actionType:
|
Type : "createEntity" | "navigate"
|
|
"createEntity" or "navigate" |
| disabled |
disabled:
|
Type : boolean
|
| Optional |
|
Whether the floating action button should be hidden. Defaults to false when undefined. |
| entityType |
entityType:
|
Type : string
|
| Optional |
|
Name of the entity to create (if actionType is "createEntity") |
| icon |
icon:
|
Type : string
|
|
FontAwesome icon name (e.g. "plus", "file-alt") |
| route |
route:
|
Type : string
|
| Optional |
|
Route to navigate to (if actionType is "navigate") |
export interface PrimaryActionConfig {
/** Whether the floating action button should be hidden. Defaults to false when undefined. */
disabled?: boolean;
/** FontAwesome icon name (e.g. "plus", "file-alt") */
icon: string;
/** "createEntity" or "navigate" */
actionType: "createEntity" | "navigate";
/** Name of the entity to create (if actionType is "createEntity") */
entityType?: string;
/** Route to navigate to (if actionType is "navigate") */
route?: string;
}