-
Re: Script.js syntax for AddExtension()
Alexander Karlsson May 8, 2014 5:00 PM (in response to claire bild)Hey,
I would recommend that you read through the SDK and a few javascript and html tutorials before you venture any further into extensions.
But yes the AddExtension method takes two required parameters and one optional. The name of the extension, a function that will be invoked on initialization/updates refered to as paint in the QV world. The last bool value defines if the extension should re-paint on updates.
-
Re: Script.js syntax for AddExtension()
Daniel Cristea Jun 26, 2015 3:33 AM (in response to Alexander Karlsson )Hello,
Could you please tell me where did you find the information that the last bool value defines if the extension should re-paint on updates ?
The JsDoc reference only defines the header
"{void} AddExtension(name, extensionPaint)"
for this function.
Thank you,
Daniel
-
-
Re: Script.js syntax for AddExtension()
Emilio Tendero Esteve May 12, 2014 2:51 PM (in response to claire bild)Hello, first I want to apologize for my English.
The meaning of the assignment "_this = this", is to keep the pointer to the application QlikView and save a copy. Other frameworks like jQuery, JSON, ..., also use the "this" pointer, and if we carry script.js file, we would lose the reference to our QlikView application and could not read the data, call methods or change the properties of the QV API.
The script.js file, is to give life to our object through javascript. In this file you tell javascript to QlikView are you going to paint on your extension and how you will do. With Properties.qvpp definition.xml and files, you design the form of properties of your extension.
A greeting.