-
Notifications
You must be signed in to change notification settings - Fork 0
/
anei-backend-handler.html
56 lines (49 loc) · 1.12 KB
/
anei-backend-handler.html
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
52
53
54
55
56
<!--
@license MIT
Copyright (c) 2015 Eidmann. All rights reserved.
-->
<link rel="import" href="../polymer/polymer.html">
<!--
An element providing a generic backend connectivity.
Example:
<anei-backend >
<anei-backend-handler action="saveData" input="elemA,elemB" output="elemA,elemC"></anei-backend-handler>
</anei-backend>
@demo
-->
<script>
'use strict';
Polymer({
is: 'anei-backend-handler',
properties: {
/**
* The ACTION will be called on the backend.
*/
action: {
type: String
},
/**
* Comma separated list of values. The values will be send as JSON tho the backend.
*/
input: {
type: String
},
/**
* Comma separated list of values. The values, that return from the backend
* as JSON.
*/
output: {
type: String
},
/**
* Mode:
* DEFAULT: One request will wait for one response.
* PERMANENT: One request will wait for many responses. (Server push)
*/
mode: {
type: String,
value: 'DEFAULT'
}
}
});
</script>