Javascript/Sencha(120)
-
Sencha Uncaught Error: [Ext.create]
데이터를 정의할때, ':' 대신 '='를 사용했을 때 발생했었음 { id: 'Child Node 1', name: '1', location= '', leaf: true }, { id: 'Child Node 2', name: '2', location= '', leaf: true },
2024.12.01 -
Sencha TreeGrid 서버 통신 샘플
const store = Ext.create('Ext.data.TreeStore', { fields: ['id', 'name', 'location'], root: { expanded: true, children: [ { id: 1, name: '거실', location: '', expanded: true, children: [ { id: 11, name: 'Jane Doe', location: 'jane.doe@example.com', leaf: true }, ..
2024.12.01 -
Sencha Grid 샘플
const store = Ext.create('Ext.data.Store', { storeId: 'store', // Unique ID for the store fields: ['id', 'name', 'data'], // Define fields data: [ // Sample data { id: 1, name: 'A', data: '' }, { id: 2, name: 'B', data: '' }, { id: 3, name: 'C', data: '' }, { id: 3, name: 'D', data: '' }, ], proxy: { type: 'memory', // Use memory proxy for local ..
2024.12.01 -
Sencha TreeGrid 샘플
const store = Ext.create('Ext.data.TreeStore', { fields: ['id', 'name', 'location'], root: { expanded: true, children: [ { id: 1, name: '거실', location: '', expanded: true, children: [ { id: 11, name: 'Jane Doe', ..
2024.12.01 -
Sencha Grid store에 변경사항 확인 및 저장하기
Ext.onReady(function () { // Sample data const initialData = [ { id: 1, name: 'John Doe', email: 'john.doe@example.com', age: 30 }, { id: 2, name: 'Jane Smith', email: 'jane.smith@example.com', age: 25 }, { id: 3, name: 'Mike Johnson', email: 'mike.johnson@example.com', age: 35 } ]; // Define the data store const store = Ext.create('Ext.data.Store', { f..
2024.12.01 -
Sencha Grid cell 선택, row 선택
cell 선택 selModel: { type: 'cellmodel' // Enable cell selection },row 선택 selModel: { type: 'rowmodel' // Enable row selection },
2024.12.01