Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
humesh_sindpure
Partner - Contributor III
Partner - Contributor III

Request to qlik sense extention develpers

I am requesting to qlik sense extention developer please help me in table extention development.

I want to add custome color property to dimention ,

here is my code:

define( ["qlik","jquery", "text!./style.css", "text!./template.html"], function (qlik, $, cssContent, template ) {'use strict';

    $("<style>").html(cssContent).appendTo("head");

  return {

       template: template,

          initialProperties : {

              qHyperCubeDef : {

                   qDimensions : [],

                   qMeasures : [],

                   qInitialDataFetch : [{

                                            qWidth : 10,

                                            qHeight : 50

                                           }]

                     }

              },

       definition : {

                  type : "items",

                  component : "accordion",

                  items : {

                         dimensions : {

                                             uses : "dimensions",

                                               min : 1,

                                             items:{

                                                    colorExpression:{

                                                                              type: "string",

                                                                             label: "Enter color expression",

                                                                             component: 'expression',

                                       ref:"qHyperCubeDef.qDimensionsInfo.0.qAttributeExpressions.0.qExpression",

                                                                    expression: "optional"

                                       

                                                                      }

                                                    }

                                              },

                          measures : {

                                         uses : "measures",

                                       min : 0

                                            },

                             sorting : {

                                         uses : "sorting"

                                         },

                            settings : {

                                          uses : "settings",

                                          items : {

                                                   initFetchRows : {

                                                                      ref : "qHyperCubeDef.qInitialDataFetch.0.qHeight",

                                                                      label : "Initial fetch rows",

                                                                       type : "number",

                                                                    defaultValue : 50

                                                                     }

                                                       }

                                          

}

                            }

  },

  support : {

                snapshot: true,

                 export: true,

              exportData : true

                 },

  paint: function ( ) {

  //setup scope.table

                      if ( !this.$scope.table ) {

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

                        }

                         return qlik.Promise.resolve();

                 },

     

       };

} );

0 Replies