Class: Layout

Qv.Document.Object.Layout

Layout information for the QlikView object.

Members

Axis :Qv.Document.Object.Axis

Note! Not available for all objects.
Type:

Background :Qv.Document.Object.Background

An object representing the object's background
Type:

Body :Object

Note! Not available for all objects
An object representing the object's body
Type:
  • Object

Caption :Object

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

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

Graph :Object

Note! Not available for all objects
Type:
  • Object

ObjectId :String

The internal QlikView name of the object. E.g. "Document\LB_REGION"..
Type:
  • String

Style :Qv.Document.Object.Style

HTML-style data for the object
Type:

Title :Object

Note! Not available for all objects
Type:
  • Object

Value :Object

Note! Not available for all objects
Type:
  • Object

Methods

SetProperty(name, value, isfinal)

Let's you set a property for your Extension, e.g change the caption, a dimension or background color.
Parameters:
Name Type Description
name String Name of the property you want to change.
value String The value you want to set.
isfinal Boolean 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.
Example
//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);