ExtJs 테이블 아이템 width 설정 하는 방법에 대해 질문합니다.
조회수 3456회
table 안에 속한 items 들의 각각의 width 를 설정하여 사용하고 싶습니다. columns 를 사용하되 width 를 사용한 부분만 조절 하고 싶습니다.
layout: {
type: 'table',
columns : '3',
},
items : [
{
xtype : 'textfield' ,
margin : '5',
}
,
{
xtype : 'textfield' ,
margin : '5',
}
,
{
xtype : 'textfield' ,
margin : '5',
}
-
(•́ ✖ •̀)
알 수 없는 사용자 - 〉
1 답변
-
테이블 말고 그리드를 사용하시면 어떨까요?
Grid를 사용하면 위 이미지와 같이 그릴 때 다음과 같이 칼럼별 width를 줄 수 있네요
Ext.create('Ext.grid.Panel', { renderTo: document.body, store: userStore, width: 400, height: 200, title: 'Application Users', columns: [ { text: 'Name', width: 100, sortable: false, hideable: false, dataIndex: 'name' }, { text: 'Email Address', width: 150, dataIndex: 'email', hidden: true }, { text: 'Phone Number', flex: 1, dataIndex: 'phone' } ] });
댓글 입력