Options
All
  • Public
  • Public/Protected
  • All
Menu

An abstract base class for side slide panel component. This class will automatically publish hide and show events to ObservableManager on topic name side-slide-panel.[sub-topic-name].show and side-slide-panel.[sub-topic-name].hide respectively. You can also control the show/hide state of this component via ObservableManager by publishing boolean to side-slide-panel.[sub-topic-name].cmd topic. This class provides the default implementation for method onLostFocus to automatically hide this component when focus lost.

author

shiorin, tee4cute

see

ObservableManager

see

INeedFocus

Hierarchy

  • AbstractSideSlidePanel

Implements

Index

Constructors

constructor

Properties

Protected active

active: boolean

Protected hideSubjects

hideSubjects: Subject<any>[]

Protected needFocusService

needFocusService: NeedFocusService

Protected observableMgr

observableMgr: ObservableManager

Protected phloxAppService

phloxAppService: PhloxAppService

Protected showSubjects

showSubjects: Subject<any>[]

Protected subTopicName

subTopicName: string

Static CMD_TOPIC_NAME

CMD_TOPIC_NAME: string = CMD_TOPIC_NAME

Static HIDE_TOPIC_NAME

HIDE_TOPIC_NAME: string = HIDE_TOPIC_NAME

Static SHOW_TOPIC_NAME

SHOW_TOPIC_NAME: string = SHOW_TOPIC_NAME

Static SUB_TOPIC_NAME

SUB_TOPIC_NAME: string = SUB_TOPIC_NAME

Accessors

Private app

  • Returns PhloxApp

Methods

getApplication

getSubTopicName

  • getSubTopicName(): string
  • Returns string

hide

  • hide(): void
  • Hide this component. This method also publishes an event to topic side-slide-panel.[sub-topic-name].hide.

    Returns void

Private initSideSlideEventTopics

  • initSideSlideEventTopics(showTopic: string, hideTopic: string, showCmdTopic: string): void
  • Parameters

    • showTopic: string
    • hideTopic: string
    • showCmdTopic: string

    Returns void

isActive

  • isActive(): boolean
  • Returns boolean

ngOnInit

  • ngOnInit(): void
  • Returns void

onFocus

  • onFocus(event: any): void
  • Parameters

    • event: any

    Returns void

onLostFocus

  • onLostFocus(event: any): void
  • Parameters

    • event: any

    Returns void

onToggle

  • onToggle(event: MouseEvent): void
  • Toggle show/hide this component. This method also publishes an event to topic side-slide-panel.[sub-topic-name].show and side-slide-panel.[sub-topic-name].hide when the component is shown or hidden respectively.

    Parameters

    • event: MouseEvent

    Returns void

show

  • show(): void
  • Show this component. This method also publishes an event to topic side-slide-panel.[sub-topic-name].show.

    Returns void

Static getCmdTopicName

  • getCmdTopicName(subTopicName: string): string
  • Parameters

    • subTopicName: string

    Returns string

Static getHideTopicName

  • getHideTopicName(subTopicName: string): string
  • Parameters

    • subTopicName: string

    Returns string

Static getShowTopicName

  • getShowTopicName(subTopicName: string): string
  • Parameters

    • subTopicName: string

    Returns string

Generated using TypeDoc