Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected bypass

bypass: boolean

Protected i18nKey

i18nKey: string

Protected i18nValue

i18nValue: any

Private itemModels

itemModels: PhloxMainMenuItem[]

Protected items

items: MenuTopItem[]

Private menuItemProvider

menuItemProvider: MainMenuItemProvider

Protected navigateSubjects

navigateSubjects: Subject<any>[]

Protected observableMgr

observableMgr: ObservableManager

Protected options

options: any

Private phloxAppService

phloxAppService: PhloxAppService

Protected subTopicName

subTopicName: string

Static NAVIGATE_CMD_TOPIC_NAME

NAVIGATE_CMD_TOPIC_NAME: string = NAVIGATE_CMD_TOPIC_NAME

Static NAVIGATE_TOPIC_NAME

NAVIGATE_TOPIC_NAME: string = NAVIGATE_TOPIC_NAME

Static SUB_TOPIC_NAME

SUB_TOPIC_NAME: string = SUB_TOPIC_NAME

Static TYPE_NAME

TYPE_NAME: string = TYPE_NAME

Accessors

Private app

  • 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

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.

doNavigate

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

getApplication

getI18NKey

  • getI18NKey(): string

getI18NValue

  • getI18NValue(): any

getItemByIndex

getItemByName

getItemCount

  • getItemCount(): 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.

getItems

getMenuItems

  • Returns PhloxMainMenuItem[]

getOptions

  • getOptions(): any

getSubTopicName

  • getSubTopicName(): string

isBypassKey

  • isBypassKey(): boolean

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

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

setI18NKey

  • setI18NKey(i18nKey: string): void

setItems

setOptions

  • setOptions(options: any): void

Static getNavigateCmdTopicName

  • getNavigateCmdTopicName(subTopicName: string): 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