0 Replies Latest reply: Mar 27, 2018 6:45 AM by Humeshkumar Sindpure RSS

    Custome color property for dimention

    Humeshkumar Sindpure

      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