- 다수의 버튼을 생성/정렬합니다.
- arrange에 [2, 3]을 지정하면 첫 라인에 두 개, 다음 라인에 세 개를 표시합니다.
- component에 버튼 컴포넌트를 지정합니다.
ccode를 지정하지 않으면 'button'으로 처리됩니다.
new mc.types.ButtonGroup({
showTo: 'showArea',
width: 300,
eachWidth: [70, 70, 70],
arrange: [2, 3],
space: 10,
paddingTop: 10,
component: [
{ccode: 'button', text: '축구'},
{text: '농구'},
{text: '수영'},
{text: '마라톤'},
{text: '탁구'}
]
});