Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Employee
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
Highlighted
Employee
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

Highlighted

Hi,

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

Erik

Highlighted
Creator II
Creator II

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