kumud garg
kumud garg

Reputation: 11

Is there any way to customized or extend Admin Console UI

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.

Upvotes: 1

Views: 246

Answers (1)

KevinS
KevinS

Reputation: 7882

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 }
    }

}

Upvotes: 0

Related Questions