Label UDR(3.3)

The Label UDR is used to create a label that can be associated with a component.

Example APL code:

// Use the generic element to create a meter GenericElement meter = udrCreate(GenericElement); meter.tag = "meter"; meter.attributes = mapCreate(string, string); mapSet(meter.attributes, "min", "0"); mapSet(meter.attributes, "max", "100"); mapSet(meter.attributes, "value", "50"); // Create a label and associate it with the meter element Label meterLabel = udrCreate(Label); meterLabel.labelFor = meter; meterLabel.labelText = "Level:";

The following fields are included in the Label UDR:

Field

Description

Field

Description

attributes (map<string,string>)

This field may contain extra attributes to be added.

cssClasses (list<string>)

This field may contain a list of extra values added to class attribute. This is typically used to style the component. Please read more on Bootstrap.

id (string)

This field may contain the id of the component

labelFor (ComponentUDR)

This field may contain the component to associate the label with.