-
Notifications
You must be signed in to change notification settings - Fork 0
/
at-carbon-tab-heading.html
74 lines (59 loc) · 1.85 KB
/
at-carbon-tab-heading.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
65
66
67
68
69
70
71
72
73
74
<link rel="import" href="../tangere/tangere.html">
<link rel="import" href="../at-carbon-icon/at-carbon-icon.html">
<link rel="import" href="../at-carbon-badge/at-carbon-badge.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../at-core-style-classes/at-core-style-classes.html" />
<link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html">
<link rel="import" href="../iron-selector/iron-selector.html">
<dom-module id="at-carbon-tab-heading">
<template>
<style include="at-core-style-classes">
</style>
</template>
</dom-module>
<script>
Polymer({
is: 'at-carbon-tab-heading',
properties: {
heading: {
type: String,
value: ''
},
stepNumber: {
type: String,
value: ''
},
forStepper: {
type: String,
value: ''
},
dataName: {
type: String,
value: ''
},
stepper: {
type: Object,
value: null
},
},
listeners: {
'tap': '_tapHandler'
},
_tapHandler: function(event) {
if(this.forStepper == null) {
console.log("Stepper-heading: for-stepper is null.");
return;
}
if(this.dataName == null) {
console.log("Stepper-heading: data-name is null.");
return;
}
var stepper = document.getElementById(this.forStepper);
if(stepper == null) {
console.log("Stepper-heading: stepper is null");
return;
}
stepper.selected = this.dataName
}
});
</script>