Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

what does $(dollor sign) parameter means?

when making a extension, on js file, we put

define(["qllik", "~~~.html",...]),

function(qlik, templates, $){

}

something like this.

I wonder what does that dollor sign means..

Is there anybody could answer this question??

1 Solution

Accepted Solutions
Alexander_Thor
Employee
Employee

well in your example ... means $.

When you define your module you can import dependencies and then those dependencies are aliased in the function call. So

define(['mycoolmodulealiasedto$', otherdepaliasedtoQ], function($,Q) {})

Now normally though people would reference a jquery dependency as $ since that is fairly common in the web developer world.

View solution in original post

2 Replies
Alexander_Thor
Employee
Employee

well in your example ... means $.

When you define your module you can import dependencies and then those dependencies are aliased in the function call. So

define(['mycoolmodulealiasedto$', otherdepaliasedtoQ], function($,Q) {})

Now normally though people would reference a jquery dependency as $ since that is fairly common in the web developer world.

Not applicable
Author

thank you!!