Visar inlägg med etikett view. Visa alla inlägg
Visar inlägg med etikett view. Visa alla inlägg

28 mars 2010

Boldness and alignment of SC.LabelView

the available properties fontWeight: and textAlign:

SC.ALIGN_LEFT
SC.ALIGN_RIGHT
SC.ALIGN_CENTER

SC.REGULAR_WEIGHT
SC.BOLD_WEIGHT

Size of the text in a SC.LabelView

to change the size of the value in a SC.LabelView simply add the following property:
controlSize:

available settings:

SC.HUGE_CONTROL_SIZE
SC.LARGE_CONTROL_SIZE
SC.REGULAR_CONTROL_SIZE
SC.SMALL_CONTROL_SIZE
SC.TINY_CONTROL_SIZE

16 mars 2010

Attaching an event to a view

myView: SC.ListView.design({
eventToHandle: function() {
return YES;
}
})


This attaches an event to a view. I havent found a list of available events yet but i shall post it as soon as i find one.