DefaultFooter class
Class represents default footer for dialog or tabs. Descendant for class BaseFooter.
Constructor
constructor(context: Dialog | Tab, options: { [option: string]: any })
Class constructor.
context: Dialog | Tab
— defines footer context: tab footer or dialog footer.options
— footer options.content: string | HTMLElement | HTMLElement[]
— defines footer content.
Methods
Method | Description | Available from version |
---|---|---|
getContent(): HTMLElement | HTMLElement[] | string | null | Returns footer content. | |
setContent(content: string | HTMLElement | HTMLElement[] | Sets footer content. | |
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 footer options. | |
getOption(option: string, defaultValue?: any): any | Returns option value with option name.
When option is not found, returns the value indicated in defaultValue .
When defaultValue is not specified, returns null . |
© «Bitrix24», 2001-2024