0

please let me know if anyone knows above query. I want add extra tags into index.html file for console UI Page. I have done lot of R&D, but couldn't find solution.

  • What kind of tags do you want to add in? You can define your own annotations and add them to your FeatureToggle enum. These annotations will be displayed on the console. – KevinS Apr 28 '23 at 07:24
  • Could please any link to do that if possible? – kumud garg Apr 29 '23 at 08:50

1 Answers1

0

If you're looking to display some custom information for a given toggle on the admin console, you can do this by creating your own annotation.

See this example: https://github.com/togglz/togglz/blob/master/core/src/main/java/org/togglz/core/annotation/Owner.java

Then just mark your toggle with that annotation.

enum class FeatureToggle {

    @EnabledByDefault
    @Owner("Gary")
    SOME_FEATURE;

    fun isActive(): Boolean {
        return FeatureContext.getFeatureManager().isActive { name }
    }

}
KevinS
  • 7,715
  • 4
  • 38
  • 56