src/app/core/admin/admin-primary-action/primary-action-config.ts

Description

Configuration for the floating primary action button.

Index

Properties

Properties

actionType
actionType: "createEntity" | "navigate"
Type : "createEntity" | "navigate"

"createEntity" or "navigate"

disabled
disabled: boolean
Type : boolean
Optional

Whether the floating action button should be hidden. Defaults to false when undefined.

entityType
entityType: string
Type : string
Optional

Name of the entity to create (if actionType is "createEntity")

icon
icon: string
Type : string

FontAwesome icon name (e.g. "plus", "file-alt")

route
route: string
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;
}

results matching ""

    No results matching ""