-
Notifications
You must be signed in to change notification settings - Fork 0
/
mini.html
64 lines (53 loc) · 1.55 KB
/
mini.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
57
58
59
60
61
62
63
64
<!doctype html>
<html>
<head>
<title></title>
<!--script src="http://www.polymer-project.org/polymer/polymer.min.js"></script-->
<!--<script src="polymer.min.js"></script>-->
<link href="../components/polymer/polymer.html" rel="import">
<script src="../components/platform-dev/platform.js"></script>
</head>
<body>
<link rel="import" href="r-mini.html">
<polymer-element name="my-app">
<template>
<button on-click="{{clicked}}">Load with innerHTML</button>
<div id="here"></div>
<content></content>
</template>
<script>
Polymer('my-app', {
enteredView: function() {
console.log("my-app inserted");
},
clicked: function(e, detail, sender) {
var doc='nb-ruleset:<nb-ruleset> </nb-ruleset>'
var doc1='r-ruleset <r-ruleset> \
AA: <r-a assignable="true" guid="VARBL13df7cdbd37x49ac" name="TodayDayOfWeek" type="DayOfWeek">\
BB; <r-b closebracket="0" javatype="java.lang.String" openbracket="0" operator="">\
</r-b>\
</r-a> </r-ruleset> '
this.$.here.innerHTML=doc;
},
});
</script>
</polymer-element>
<!--
<h2> ruleset loading immediately</h2>
<nb-ruleset></nb-ruleset>
-->
<h2> ruleset loading P2</h2>
<r-ruleset >
AA: <r-a assignable="false" guid="VARBL13da1ea014fx24f2b"
name="clientId" type="int">
BB: <r-b closebracket="0" javatype="int" openbracket="0" operator="">
</r-b>
</r-a>
</r-ruleset>
<h2> My app: ruleset loading on click</h2>
</br>
<my-app></my-app>
</br>
</script>
</body>
</html>