Search
LabelWidget Members
Constructors Properties Methods
 


Represents a widget that displays a single text label.The text can be a static property or bound to a data source.

The following tables list the members exposed by the LabelWidget type.

 Public Constructors

  Name Description

LabelWidget

Initializes a new instance of the LabelWidget class.

 Public Properties

  Name Description

cssClass

Gets or sets the name of the CSS class of this widget. (Inherited from DashboardWidget.)

dashboard

Gets the parent Dashboard model for this widget.This property is set automatically when the widget is added to a dashboard. (Inherited from DashboardWidget.)

dataPath

Gets or sets the path within the data source to extract the relevant value. (Inherited from DashboardWidget.)

dataSource

Gets or sets the ID of the data source this widget is bound to. (Inherited from DashboardWidget.)

fontName

Gets or sets the font name used to draw the text.

fontSize

Gets or sets the font size used to draw the text.

fontStyle

Gets or sets the font style used to draw the text.

id

Gets or sets the string identifier of this widget. (Inherited from DashboardWidget.)

minFontSize

Gets or sets the minimum font size used for the text, in pixels.

mockOptions

Gets or sets options for generating mock data for this widget. (Inherited from DashboardWidget.)

text

Gets or sets the static text to be displayed.This is used if the widget is not bound to a data source via dataPath.

 Public Methods

  Name Description

createControl

Creates the internal control of the widget, if there is any.Subclasses can override this method to create their specific content. (Inherited from DashboardWidget.)

createControl

Creates the internal control of the widget.

disposeControl

Disposes the internal control of the widget, if there is any.Subclasses can override this method to add their specific dispose logic. (Inherited from DashboardWidget.)

draw

Creates the DOM structure of the widget.

fromJson

Deserializes the label widget properties from a JSON object.

getMetadata

Creates the meta data dictionary that contains the editable properties of the widget.

invalidate

Notifies the parent dashboard that this widget needs to be refreshed. (Inherited from DashboardWidget.)

refresh

Refreshes a DOM view of the widget with the latest data and properties.

toJson

Serializes the label widget properties into a JSON-compatible object.

 See Also