-
Notifications
You must be signed in to change notification settings - Fork 30k
/
HiddenInputWidget.d.ts
37 lines (31 loc) · 1.14 KB
/
HiddenInputWidget.d.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
declare namespace OO.ui {
/**
* Data widget intended for creating `<input type="hidden">` inputs.
*
* ResourceLoader module: `oojs-ui-core`
*
* @see https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.HiddenInputWidget
*/
interface HiddenInputWidget extends HiddenInputWidget.Props, HiddenInputWidget.Prototype {}
namespace HiddenInputWidget {
interface ConfigOptions extends Widget.ConfigOptions {
/** The value of the input. */
value?: string;
/** The value of the input’s HTML `name` attribute. */
name?: string;
}
type Static = Widget.Static;
type Props = Widget.Props;
type Prototype = Widget.Prototype;
interface Constructor {
/** @param config Configuration options */
new(config?: ConfigOptions): HiddenInputWidget;
prototype: Prototype;
static: Static;
super: Widget.Constructor;
/** @deprecated Use `super` instead */
parent: Widget.Constructor;
}
}
const HiddenInputWidget: HiddenInputWidget.Constructor;
}