Interface CloseButtonConfig

Configuration interface for the CloseButton.

interface CloseButtonConfig {
    acceptsTouchWithUiHidden?: boolean;
    ariaLabel?: LocalizableText;
    cssClass?: string;
    cssClasses?: string[];
    cssPrefix?: string;
    disabled?: boolean;
    hidden?: boolean;
    id?: string;
    role?: string;
    tabIndex?: number;
    tag?: string;
    target: Component<ComponentConfig>;
    text?: LocalizableText;
}

Hierarchy (view full)

Properties

acceptsTouchWithUiHidden?: boolean

Specifies whether the first touch event received by the UIContainer should be prevented or not.

Default: false

ariaLabel?: LocalizableText

WCAG20 standard for defining info about the component (usually the name)

cssClass?: string

The CSS classes of the component. This is usually the class from where the component takes its styling.

cssClasses?: string[]

Additional CSS classes of the component.

cssPrefix?: string

A prefix to prepend all CSS classes with.

disabled?: boolean

Specifies if the component is enabled (interactive) or not. Default: false

hidden?: boolean

Specifies if the component should be hidden at startup. Default: false

id?: string

The HTML ID of the component. Default: automatically generated with pattern 'ui-id-{guid}'.

role?: string

Specifies the component role for WCAG20 standard

tabIndex?: number

WCAG20 requirement for screen reader navigation

tag?: string

The HTML tag name of the component. Default: 'div'

The component that should be closed when the button is clicked.

The text as string or localize callback on the button.