-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.js
40 lines (36 loc) · 925 Bytes
/
template.js
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
import DebuggerHbTemplate from './template.html';
import TemplateBuilder from '../template-builder.js';
/**
* Template for the PersentageColumn
*
* @class PresentColTemplate
* @extends {TemplateBuilder}
*/
class DebuggerTemplate extends TemplateBuilder {
/**
* Creates an instance of PresentColTemplate.
*
* @param {any} context Template events will be attached here
*/
constructor(context) {
super(DebuggerHbTemplate, context);
}
/**
* Gets all the template events enclosed in a namespace.
* Refer handlebar template file
*
* @returns {any} Namespaced template events
*/
getNamespacedTemplateEvents() {
const DebuggerFunctions = {
onHover: (target) => {
target.style.color = '#882200';
},
onHoverExit: (target) => {
target.style.color = '#222222';
}
};
return {DebuggerFunctions};
}
}
export default DebuggerTemplate;