Is there a way to suppress _hsc for just one view? #462
-
I have _hsc enabled universally (love it) but would like to remove it from one specific view (a public facing dashboard). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Leigh, Yes, that's easy to do with a few lines of code: If you don't already have the call to setup the views (ktl.views.setCfg), you'll need to add it, like this:
The magic sauce is the hscAllowed function, where the logic is applied. You can put whatever you like in there. In one use case I have, I also disable this feature across the board if the device is running in kiosk mode. Enjoy, |
Beta Was this translation helpful? Give feedback.
Hi Leigh,
Yes, that's easy to do with a few lines of code:
If you don't already have the call to setup the views (ktl.views.setCfg), you'll need to add it, like this:
The magic sauce is the hscAllowed function, where the logic is applied.
You can put whatever you like in there. In one use case I have, I also disable this feature across the board if the device is running in kiosk mode.
Enjoy,
Norm