컬럼

button 타입 컬럼의 옵션

QCELL에서는 button 타입 컬럼에서 버튼의 크기, 위치, 라벨, 클릭 동작을 제어할 수 있는 옵션을 제공합니다.
이를 통해 버튼의 크기와 위치를 설정해 테이블 안에서 보이는 모양을 지정하고, 클릭 시 원하는 동작을 구현할 수 있습니다.




1️⃣ 옵션 설명

옵션명 타입 설명
buttonwidth button 버튼의 넓이
buttonheight button 버튼의 높이
buttonposition button 버튼의 위치
buttonlabel button 버튼의 라벨
buttonclick button 버튼 클릭 시 동작할 함수 설정



2️⃣ 사용 예제

아래는 button 타입 컬럼에 버튼의 크기, 위치, 라벨, 클릭 동작을 제어할 수 있는 옵션을 설정한 예제입니다.


{
  key: 'phone', 
  type: "button"
  width: '17%',
  title: ['button'], 
  options: {
   buttonwidth: '40px',          
   buttonheight: '30px',         
   buttonposition: 'right',      
   buttonlabel: '버튼',          
   buttonclick: function funclickbutton(){return alert('버튼을 클릭하였습니다.');}
  }
}