I have a component that implements both the interface for Community and Standard Lightning.
Some people suggest to add an attribute and set it in the Lightning App Builder or Community Builder so as to distinguish in which kind of environment we are.
It is quite annoying for the System Administrator to configure the behavior of the component each time it is needed.
But what if this can be achieved automatically by only a few lines of code?
Here is how I did it:
Your component must first extends a controller.
I Hope that this post will be helpful to you. Cheers!!
It is quite annoying for the System Administrator to configure the behavior of the component each time it is needed.
But what if this can be achieved automatically by only a few lines of code?
Here is how I did it:
Your component must first extends a controller.
I Hope that this post will be helpful to you. Cheers!!
Really helpful! Thanks
ReplyDelete