Javascript(198)
-
Sencha panel안에 grid 2개를 수평으로 꽉꽉 채우기
layout: 'hbox'로 수평으로 grid 집어 넣기flex: 1로 width를 꽉꽉 채우기height: '100%'로 height를 꽉꽉 채우기Ext.application({ name: 'FullScreenGrids', launch: function () { Ext.create('Ext.container.Viewport', { layout: 'hbox', // Horizontal layout for grids items: [ { xtype: 'grid', title: 'Grid 1', flex: 1, // Gr..
2024.12.13 -
Sencha grid 변경 플래그 제거하기
Grid 변경 플래그 제거하기grid.getStore().each(record => { record.commit(); // Resets the dirty state});
2024.12.13 -
Javascript array 복사하기
const seriesOrigin = [].concat(chart.getSeries()); // Wrap in an array if not already const seriesClone = seriesOrigin.map(series => Ext.clone(series.getInitialConfig()));
2024.12.13 -
Sencha Ext.window.Window 팝업 띄우기
부모창의 chart 정보를 그대로 뿌려주기function showChartInPopup(chart) { // Clone the initial configuration of the chart const chartConfig = Ext.clone(chart.initialConfig); // Ensure the series configuration is correctly cloned const seriesOrigin = [].concat(chart.getSeries()); // Wrap in an array if not already const seriesClone = seriesOrigin.map(series => Ext.clone(series.getInitialConfig()))..
2024.12.13 -
Sencha 패키지 추가 방법
참조: https://docs.sencha.com/extjs/7.8.0/guides/getting_started/getting_started_addons/getting_started_with_cmd.html Using Ext JS add-ons with Cmd | Ext JS 7.8.0Ext JS Modern - API documentation from Senchadocs.sencha.comcharts 패키지 소스 가져오기cd {workspace}sencha generate package chartscharts 패키지 생성 실행cd {workspace}/packages/local/chartssencha package buildext 아래에 생성cd {workspace}/ext/packages/charts..
2024.12.08 -
Sencha 처음 설정
참고: https://docs.sencha.com/extjs/7.8.0/guides/getting_started/getting_started_with_zip.html?_gl=1*mmb310*_gcl_au*MjAzOTQyNjYxMC4xNzMyOTMxNTA4 Getting Started with zip | Ext JS 7.8.0Ext JS - API documentation from Senchadocs.sencha.comApp 생성sencha generate app --ext MyApp ./MyAppUnable to locate 'framework.dir' property from sencha.cfg and no framework directory specifiedsencha -sdk {ext 위치} gen..
2024.12.08