The Label UDR
is used to create a label that can be associated with a component.
Example APL code:
Code Block |
---|
// 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:"; |
...