Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

  • IHasOptions
  • II18NApplicable
  • INavigator<MenuTopItem>
  • OnInit
  • IApplicationAware
  • OnInit

Index

Constructors

constructor

Properties

Protected bypass

bypass: boolean

Private dataChangeInstanceEventEmitter

dataChangeInstanceEventEmitter: EventEmitter<any>

Private dataInstance

dataInstance: any

Private dataPageIndexSelect

dataPageIndexSelect: any

Private hideInstanceCollectionEventEmitter

hideInstanceCollectionEventEmitter: EventEmitter<any>

Protected i18nKey

i18nKey: string

Protected i18nValue

i18nValue: any

Private itemModels

itemModels: ParrotsMainMenuItem[]

Protected items

items: MenuTopItem[]

Private loaderStartPower

loaderStartPower: boolean

Private loaderStopPower

loaderStopPower: boolean

Private menuItemProvider

Protected navigateSubjects

navigateSubjects: Subject<any>[]

Protected observableMgr

observableMgr: ObservableManager

openHideInstanceCollection

openHideInstanceCollection: boolean = true

Protected options

options: any

Private parrotsAccountService

parrotsAccountService: ParrotsAccountService

Private parrotsDialogService

parrotsDialogService: ParrotsDialogService

Private parrotsLoaderService

parrotsLoaderService: ParrotsLoaderService

Private phloxAppService

phloxAppService: PhloxAppService

Private showDropdownInstance

showDropdownInstance: boolean

Private showInstanceCollectionEventEmitter

showInstanceCollectionEventEmitter: EventEmitter<any>

Protected subTopicName

subTopicName: string

Private switchPower

switchPower: boolean = false

Private switchShutDown

switchShutDown: boolean = false

Private userService

userService: UserService

Static NAVIGATE_CMD_TOPIC_NAME

NAVIGATE_CMD_TOPIC_NAME: string

Static NAVIGATE_TOPIC_NAME

NAVIGATE_TOPIC_NAME: string

Static SUB_TOPIC_NAME

SUB_TOPIC_NAME: string = SUB_TOPIC_NAME

Static TYPE_NAME

TYPE_NAME: string = TYPE_NAME

Accessors

Private app

  • get app(): PhloxApp
  • Returns PhloxApp

Methods

addItem

  • Add a new nav item into this nav menu. If there already is the given item in this nav menu, this method will do nothing and return false.

    Parameters

    • item: MenuTopItem

      A new nav item to be added into this nav menu.

    Returns boolean

    Returns true if the given item is added into this nav menu. Otherwise, returns false.

applyI18N

  • applyI18N(value: any): void
  • Parameters

    • value: any

    Returns void

containsItem

  • To check that the given item is in this nav menu or not.

    Parameters

    • item: MenuTopItem

      A nav item to check that it is in this nav menu or not.

    Returns boolean

    Returns true if the given item is in this nav menu.

dataChangeInstanceStatus

  • dataChangeInstanceStatus(): void
  • Returns void

doNavigate

  • Parameters

    Returns Promise<boolean>

getAccountPageLink

  • getAccountPageLink(): string
  • Returns string

getActiveIndex

  • getActiveIndex(): number
  • Get an active nav item index of this nav menu.

    Returns number

    Returns -1 if there is no current active item. Otherwise, return the array index of current active item.

getActiveItem

  • Get an active nav item of this nav menu.

    Returns MenuTopItem

    Returns null if there is no current active item.

getApplication

  • getApplication(): PhloxApp
  • Returns PhloxApp

getI18NKey

  • getI18NKey(): string
  • Returns string

getI18NValue

  • getI18NValue(): any
  • Returns any

getInstance

  • getInstance(): any
  • Returns any

getInstanceCollectionPageLink

  • getInstanceCollectionPageLink(): string
  • Returns string

getItemByIndex

  • Get a nav item ([[AbstractNavItem]]) from the given index (idx).

    Parameters

    • idx: number

      The index of nav item to get.

    Returns MenuTopItem

    Returns an instance of nav item ([[AbstractNavItem]]) at the specified index (idx). Returns null if the given index is out of range.

getItemByName

  • Get a nav item ([[AbstractNavItem]]) by the given name.

    Parameters

    • name: string

      The name of a nav item to get.

    Returns MenuTopItem

    Returns an instance of nav item ([[AbstractNavItem]]) with the given name. Returns null if not found.

getItemCount

  • getItemCount(): number
  • Get nav items count in this nav menu.

    Returns number

getItemIndex

  • Get the index of the given nav item (item).

    Parameters

    Returns number

    Returns an index of the specified item. Returns -1 if not found.

getItemIndexByName

  • getItemIndexByName(name: string): number
  • Get the index of the given item name.

    Parameters

    • name: string

      The item name to find index.

    Returns number

    Returns an index of nav item having the specified name. Returns -1 if not found.

getItemModels

getItems

  • Get nav items ([[AbstractNavItem]]) of this nav menu.

    Returns MenuTopItem[]

getLoaderStartPower

  • getLoaderStartPower(): boolean
  • Returns boolean

getLoaderStopPower

  • getLoaderStopPower(): boolean
  • Returns boolean

getMainPageLink

  • getMainPageLink(): string
  • Returns string

getMenuItems

getOpenHideInstanceCollection

  • getOpenHideInstanceCollection(): void
  • Returns void

getOptions

  • getOptions(): any
  • Returns any

getShowDropdownInstance

  • getShowDropdownInstance(): boolean
  • Returns boolean

getSubTopicName

  • getSubTopicName(): string
  • Get [[ObservableManager]]'s sub topic name associated with this nav menu.

    Returns string

hideInstanceCollection

  • hideInstanceCollection(): void
  • Returns void

isBypassKey

  • isBypassKey(): boolean
  • Returns boolean

menuRouterLinks

  • menuRouterLinks(index: number): void
  • Parameters

    • index: number

    Returns void

navigateTo

  • Navigate this nav menu to the specified nav item. This method returns Promise to support asynchronous execution. The result value of returned Promise is a boolean indicating the navigation result. The result value must be true if the navigation is successful. Otherwise, for example, if the given item does not exist, the result value will be false.

    Parameters

    Returns Promise<boolean>

    Returns a Promise which will be resolved when the navigation is done. The Promise's result will be a boolean value which its value will be true if the navigation is successful.

navigateToIndex

  • navigateToIndex(idx: number): Promise<boolean>
  • Navigate this nav menu to the specified index (idx). This method returns Promise to support asynchronous execution. The result value of returned Promise is a boolean indicating the navigation result. The result value must be true if the navigation is successful. Otherwise, the result value will be false.

    Parameters

    • idx: number

      The item index to navigate to.

    Returns Promise<boolean>

    Returns a Promise which will be resolved when the navigation is done. The Promise's result will be a boolean value which its value will be true if the navigation is successful.

navigateToName

  • navigateToName(name: string): Promise<boolean>
  • Navigate this nav menu to a nav item having the specified name. This method returns Promise to support asynchronous execution. The result value of returned Promise is a boolean indicating the navigation result. The result value must be true if the navigation is successful. Otherwise, for example, if the given item does not exist, the result value will be false.

    Parameters

    • name: string

      The name of a nav item to navigate to.

    Returns Promise<boolean>

    Returns a Promise which will be resolved when the navigation is done. The Promise's result will be a boolean value which its value will be true if the navigation is successful.

ngOnInit

  • ngOnInit(): void
  • Returns void

onBlurPower

  • onBlurPower(event: any): void
  • Parameters

    • event: any

    Returns void

onClickPower

  • onClickPower(event: any): void
  • Parameters

    • event: any

    Returns void

onClickRestart

  • onClickRestart(event: any): void
  • Parameters

    • event: any

    Returns void

onClickShutDown

  • onClickShutDown(event: any): void
  • Parameters

    • event: any

    Returns void

onLogoutBtnClick

  • onLogoutBtnClick(event: any): void
  • Parameters

    • event: any

    Returns void

onMouseOutPower

  • onMouseOutPower(event: any): void
  • Parameters

    • event: any

    Returns void

onMouseOverPower

  • onMouseOverPower(event: any): void
  • Parameters

    • event: any

    Returns void

openInstanceCollection

  • openInstanceCollection(): void
  • Returns void

reloadMenuItems

  • reloadMenuItems(): Promise<boolean>
  • Returns Promise<boolean>

removeItem

  • Remove the given item from this nav menu. If the given item is not in this nav menu, this method will do nothing and return false. If the item being removed is a current active item, this nav menu will be navigated to the first nav item.

    Parameters

    • item: MenuTopItem

      A nav item to be removed from this nav menu.

    Returns boolean

    Returns true if the given item is found and removed from this nav menu. Otherwise, returns false.

reset

  • reset(): void
  • Reset this nav menu. This method simply navigates back to the item at index 0.

    Returns void

setBypassKey

  • setBypassKey(bypass: boolean): void
  • Parameters

    • bypass: boolean

    Returns void

setI18NKey

  • setI18NKey(i18nKey: string): void
  • Parameters

    • i18nKey: string

    Returns void

setItems

  • Set nav items of this nav menu.

    Parameters

    Returns void

setOptions

  • setOptions(options: any): void
  • Parameters

    • options: any

    Returns void

showInstanceCollection

  • showInstanceCollection(): void
  • Returns void

validationInstance

  • validationInstance(instance?: any, selected?: boolean): void
  • Parameters

    • Optional instance: any
    • Optional selected: boolean

    Returns void

Private validationInstanceState

  • validationInstanceState(): void
  • Returns void

Static getNavigateCmdTopicName

  • getNavigateCmdTopicName(subTopicName: string): string
  • Get the navigation cmd topic name with the given subTopicName. The returning topic name will be prefixed by NAVIGATE_CMD_TOPIC_NAME.

    Parameters

    • subTopicName: string

    Returns string

Static getNavigateTopicName

  • getNavigateTopicName(subTopicName: string): string
  • Get the navigation event topic name with the given subTopicName. The returning topic name will be prefixed by NAVIGATE_TOPIC_NAME.

    Parameters

    • subTopicName: string

    Returns string

Generated using TypeDoc