Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
prabhuappu
Creator II
Creator 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
Francis_Kabinoff
Former Employee
Former Employee

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...

View solution in original post

3 Replies
Francis_Kabinoff
Former Employee
Former Employee

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...

ErikWetterberg

Hi,

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

Erik

prabhuappu
Creator II
Creator II
Author

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