Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

humesh_sindpure
New Contributor II

Custome color property for dimention

Hello Sir,

  My name is Humesh . I am developing an extention for table.I want to add custome color property to every dimentions and measures.

I found your this code :

colorExpression:{     

   type: "string",  

   label: "Enter color expression",           

ref:"qAttributeExpressions.0.qExpression",   

  expression:"optional"

}

I have written this code inside of dimention shown below:

definition : {

  type : "items",

  component : "accordion",

    items : {

         dimensions : {

                uses : "dimensions",

                min : 1,

                items: {

               colorExpression:{

                                          type: "string",

                                          label: "Enter color expression",

                                          component : "expression"

                                          ref:"qAttributeExpressions.0.qExpression"

                                         }

                 }

  },

now please tell me what should I need to write inside of function

to apply custome color reference to dimention

      paint: function ($element,layout) {

// what should I write here

          if ( !this.$scope.table ) {

         this.$scope.table = qlik.table( this );

           }

         return qlik.Promise.resolve();       

       }

please give me solution

Community Browser