Getting Started | Class Index

Classes


Class Qv.Document.Object.Layout

Layout information for the QlikView object.

Class Summary
Constructor Attributes Constructor Name and Description
 
Layout information for the object
Field Summary
Field Attributes Field Name and Description
 
Note! Not available for all objects.
 
An object representing the object's background
 
Note! Not available for all objects
An object representing the object's body
 
The caption object
 
Note! Not available for all objects
 
The internal QlikView name of the object.
 
HTML-style data for the object
 
Note! Not available for all objects
 
Note! Not available for all objects
Method Summary
Method Attributes Method Name and Description
 
SetProperty(name, value, isfinal)
Let's you set a property for your Extension, e.g change the caption, a dimension or background color.
Class Detail
Qv.Document.Object.Layout
Layout information for the object
Field Detail
Note! Not available for all objects.

An object representing the object's background

{Object} Body
Note! Not available for all objects
An object representing the object's body

{Object} Caption
The caption object
Example:
function init() {
    doc = Qv.GetCurrentDocument();
    var lb = doc.GetObject("LB1460");

    lb.SetOnUpdateComplete(function(myself) {
        alert(this.Layout.Caption.label);
    });
};

{Object} Graph
Note! Not available for all objects

{String} ObjectId
The internal QlikView name of the object. E.g. "Document\LB_REGION"..

HTML-style data for the object

{Object} Title
Note! Not available for all objects

{Object} Value
Note! Not available for all objects
Method Detail
{void} SetProperty(name, value, isfinal)
Let's you set a property for your Extension, e.g change the caption, a dimension or background color.
    //Changes 2 properties for the Extension, in one server call
    this.Layout.SetProperty('Caption.Text', 'My new caption', false);
    this.Layout.SetProperty('Caption.Font.Italic', '1', true);
Parameters:
{String} name
Name of the property you want to change.
{String} value
The value you want to set.
{Boolean} isfinal
Set this to true if you want to notify the server immediately of the change. If you want to stack several changes together in one Ajax-call, set only the last isfinal to true and the others to false.