-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-binding.element.d.ts
More file actions
46 lines (46 loc) · 1.39 KB
/
code-binding.element.d.ts
File metadata and controls
46 lines (46 loc) · 1.39 KB
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
42
43
44
45
46
export type BindingType = 'boolean' | 'number' | 'string' | 'select' | 'color' | 'comment' | 'attribute' | 'readonly';
/**
* <code-binding> Web Component
*
* Represents a binding in interactive code. Emits 'change' events when value changes.
*
* @example
* <code-binding
* key="width"
* type="number"
* value="72"
* min="56"
* max="120">
* </code-binding>
*
* @fires change - Fired when value changes, detail contains the new value
*/
export declare class CodeBindingElement extends HTMLElement {
static observedAttributes: string[];
private _value;
private _disabled;
private _connected;
get key(): string;
get type(): BindingType;
get min(): number | undefined;
get max(): number | undefined;
get step(): number | undefined;
get options(): string[];
get carousel(): boolean;
get value(): any;
set value(v: any);
get disabled(): boolean;
set disabled(v: boolean);
connectedCallback(): void;
attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
private parseValue;
private emitChange;
/** Toggle boolean/comment/attribute value or cycle through select options */
toggle(): void;
/** Cycle to previous option (for select carousel) */
previous(): void;
/** Increment number value */
increment(): void;
/** Decrement number value */
decrement(): void;
}