Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
humesh_sindpure
Partner - Contributor III
Partner - Contributor III

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

0 Replies