Class AbstractHeaderServiceAbstract

Hierarchy (view full)

Implements

  • OnDestroy

Constructors

Properties

_clearHeaderSearch$: Subject<number>
_headerChange$: Subject<HeaderChange>
_headerColumnCount$: BehaviorSubject<number>
_headerState: HeaderState
_headerType: HeaderType
_logger: LoggerService
_overflowService: OverflowService
_preferenceColumnCount$: ReplaySubject<number>
_preferences: UserPreferenceService
_responsiveHeaders$: BehaviorSubject<boolean>
fieldsGroup: FieldsGroup[]
DEFAULT_HEADER_COUNT = 5
DEFAULT_HEADER_RESPONSIVITY = true

Accessors

Methods

  • Change selected header mode there are three possible modes: SORT, SEARCH and EDIT

    Parameters

    • newMode: HeaderMode

      the mode that the header should change to

    • saveLastMode: boolean = true

      whether the last state should be remembered. It can be restored with the [HeaderState.restoreLastMode()]HeaderState#restoreLastMode method.

    Returns void

  • If this view has som headers stored in it's preferences attempts to load them. If the preferences contain nonexistent headers they will be skipped.

    This function is NOT called by the abstract class' constructor. It is the responsibility of the child class to call it at an appropriate moment.

    Returns void

  • Change sort mode for selected column all other column are set to default sort mode Emit request for sorted panels

    Parameters

    • columnIndex: number

      index of the column that caused the sort change

    • active: string

      Represents column identifier

    • direction: SortDirection

      Represent one of sort modes: asd, desc and ''

    Returns void