Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

prabhuappu
Contributor II

Need help in Qliksense AngularJS Extension

Hi,

I have created an extension in qliksense using angularjs. In that, i have used "ng-repeat"  to create elements based on the data.

I want to call a function once the ng-repeat loop ends. I searched in stackoverflow and got the below solution.But I don't know how to implement this in Qliksense extension. It would be great if anyone help me on this.

http://stackoverflow.com/questions/13471129/ng-repeat-finish-event

Regards,

Prabhu Appu

1 Solution

Accepted Solutions
Employee
Employee

Re: Need help in Qliksense AngularJS Extension

You can create directives on qvangular. Like so - qvangular.directive(....

You'll need to make sure you include 'qvangular' in your define.

You can find an example here - https://github.com/stefanwalther/sense-extension-recipes/blob/master/Angular-BasicExample/src/direct...

3 Replies
Employee
Employee

Re: Need help in Qliksense AngularJS Extension

You can create directives on qvangular. Like so - qvangular.directive(....

You'll need to make sure you include 'qvangular' in your define.

You can find an example here - https://github.com/stefanwalther/sense-extension-recipes/blob/master/Angular-BasicExample/src/direct...

erik_wetterberg
Honored Contributor

Re: Need help in Qliksense AngularJS Extension

Hi,

What do you want to do? Does it really depend on the rendering of the table?

Erik

Erik Wetterberg
https://extendingqlik.upper88.com/
prabhuappu
Contributor II

Re: Need help in Qliksense AngularJS Extension

Thanks fka

it is working as expected. i can able to achieve the requirement.

Hi Erik

I am trying to create a straight table in Qliksense with similar features in Qlikview,

So for minichart i am using jQuery Sparkline library.I need to call the below function once the ng-repeat completes otherwise the sparklinechart is not loading.

$('.inlinesparkline' + i).sparkline('html'

                                        {

                                            'width': ColumnList.HeaderWidth - 20,

                                            'fillColor': 'rgba(52, 152, 219,0.5)',

                                            'lineColor': '#2980b9',

                                            'spotColor': ''

                                        });

i'm able to achieve my requirement using directive as well as timeout function (using timeout function to initialize the sparkline chart after 1sec). so in that time ng-repeat loop will be over

straighttable.PNG

Regards,

Prabhu Appu

Community Browser