Class actuate.report.Label
Represents a report label element.
Member of: actuate.report.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a report label element.
|
Field Attributes | Field Name and Description |
---|---|
<static> <constant> |
Label element type name.
|
Method Attributes | Method Name and Description |
---|---|
getLabel()
Returns the text of label element
|
|
getType()
Returns the report element type.
|
|
hide()
Hides this element.
|
|
show()
Shows this element.
|
|
submit(callback)
Submits all the asynchronous operations for this chart.
|
Field Detail
<static> <constant>
{String} TYPE
Label element type name.
Method Detail
{String} getLabel()
Returns the text of label element
- Returns:
- {String} label
{String} getType()
Returns the report element type.
- Returns:
- {String} "Label"
{void} hide()
Hides this element. To hide the chart bchart, use code similar to the following:
alert("Hiding chart" + bchart.getBookmark( )); bchart.hide( ); bchart.submit( );
- Returns:
- {void}
{void} show()
Shows this element. For example, to reveal the hidden chart bchart, use code similar to the following:
alert("Showing chart" + bchart.getBookmark( )); bchart.show( ); bchart.submit( );
- Returns:
- {void}
{void} submit(callback)
Submits all the asynchronous operations for this chart. This function triggers an AJAX request for all asynchronous operations. When the server finishes the processing, it returns a response and the results are rendered on the page in the element's container. This example sets a chart's title to the bookmark name and pops up an alert box upon completion:
function titleBookmark(bchart){ bchart.setChartTitle(bchart.getBookmark( )); bchart.submit(alert("Title Changed")); }
- Parameters:
- {Function} callback
- Optional. A function to execute after the asynchronous call processing is done. A function to execute after the asynchronous call processing is done. Submit passes the current actuate.viewer object to the callback as an input parameter.
- Returns:
- {void}