-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
buttonlabel.ts
41 lines (34 loc) · 952 Bytes
/
buttonlabel.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module ui/button/buttonlabel
*/
import type View from '../view.js';
/**
* The button label interface. Implemented by the {@link module:ui/button/buttonlabelview~ButtonLabelView}
* and any label view that can be used with the {@link module:ui/button/buttonview~ButtonView}.
*/
export default interface ButtonLabel extends View {
/**
* The `id` attribute of the button label. It is used for accessibility purposes
* to describe the button.
*
* @observable
*/
id: string | undefined;
/**
* The `style` attribute of the button label. It allows customizing the presentation
* of the label.
*
* @observable
*/
style: string | undefined;
/**
* The human-readable text of the label.
*
* @observable
*/
text: string | undefined;
}