-
Notifications
You must be signed in to change notification settings - Fork 0
/
cuba-lookup.d.ts
51 lines (46 loc) · 1.42 KB
/
cuba-lookup.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* cuba-lookup.html
*/
/// <reference path="../polymer/types/polymer.d.ts" />
/// <reference path="../paper-button/paper-button.d.ts" />
/// <reference path="../paper-dialog/paper-dialog.d.ts" />
/// <reference path="../paper-dialog-scrollable/paper-dialog-scrollable.d.ts" />
/**
* `cuba-lookup` component provides an ability to specify entity `-list` component
* in order to select an entity instance for a reference attribute.
* The list component should be marked passed into `lookup-screen` slot.
*
*
* <link rel="demo-manufacturers-by-country.html">
*
* <cuba-lookup picked-entity="{{entity.manufacturer}}">
* <div slot="dropdown">
* ...
* </div>
* <demo-manufacturers-by-country slot="lookup-screen"></demo-manufacturers-by-country>
* </cuba-lookup>
*/
interface CubaLookupElement extends Polymer.Element {
/**
* Entity which has been picked by user.
*/
pickedEntity: object|null|undefined;
/**
* Entity which is currently selected in lookup dialog.
*/
selectedEntity: object|null|undefined;
_lookupElement: object|null|undefined;
ready(): void;
showLookupScreen(): void;
_select(): void;
_cancel(): void;
}
interface HTMLElementTagNameMap {
"cuba-lookup": CubaLookupElement;
}