Skip to content

Nested Variable Naming

Compare
Choose a tag to compare
@andycate andycate released this 18 Feb 01:36
· 113 commits to master since this release
5096e6b

DashboardVar will name properties based on nested objects. For instance, with the following class, the dashboard will have a variable called Constants.PROPS and another called Constants.Nested.PROPS.

object Constants {
    
    fun initProps() {
        DashboardVar.initClassProps(Constants::class)
    }

    public var PROP by DashboardVar(2.0)
    object Nested {
        public var PROP by DashboardVar(3.0)
    }
}