Skip to main content
WitchXHunter
Inspiring
July 18, 2010
Question

Component label and style

  • July 18, 2010
  • 1 reply
  • 1232 views

Is it possible to get the component's single lable without having all the labels of the component appearing?

Like, I'm trying to include the label into a text's .text

the code I'm using now is

MoVName.text=MoV.labels;

but it gave me all the labels that were included in that particular component.

and is there anyway I can change the font, bg colour of the components? Thank you.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 18, 2010

it's hard to think of a more useless component than the label component especially if you're already using a textfield.

why not just add the text you want to your textfield?  you can use the textformat class or css to format/style the various parts of your text.

WitchXHunter
Inspiring
July 19, 2010

Ohh coz I was thinking it include it in a single function without having to go through every selection, like when the the option is selected, the textfield will automatically take the label value from the component. Hmm guess I'll just include the text one by one. Thanks for the help. ^^

kglad
Community Expert
Community Expert
July 19, 2010

you're welcome.