Documentation

BaseFooter class

Base abstract class for tab and dialog footers.

Constructor

constructor(context: Dialog | Tab, options: { [option: string]: any })

Class constructor. Descendant classes require calling this constructor as follows:

super(context, options);

  • context: Dialog | Tab — defines footer context: tab footer and dialog footer.
  • options — footer options.

Methods

Method Description Available from version
render(): HTMLElement Abstract method returns footer layout. Required in descendant classes.
getDialog(): Dialog Returns dialog object containing the footer.
getTab(): ?Tab Returns tab object with associated footer. Returns null for dialog footer.
show(): void Shows footer.
hide(): void hides footer.
getOptions(): { [option: string]: any } Returns collection of random footer options.
getOption(option: string, defaultValue?: any): any Returns option value with option name. When option is not found, returns value, specified in defaultValue. When defaultValue is not specified, returns null.

© «Bitrix24», 2001-2024
Up