Hi,
I have a requirement to format date. For this I have written function in the parent class. Now how can I access parent function in the formatter ?
This is what I am trying but without success. This is piece of code of my Excel Export.
{
name: "Level1 Timestamp",
template: {
content: "{path: 'Level1Timestamp', formatter: 'BaseController.datTimeFormat'}"
}
BaseController (the file name and also the instance of parent class is BaseController) is the parent controller which has dateTimeFormat function.
I tried full path of Parent class but no luck. Both Parent class and the child class (where I am using formatter) are in the same View folder.
Request clarification before answering.
Hello,
Did you simply try this :
formatter: '.datTimeFormat'With the dot and then without the dot.
Regards,
Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.