Javascript(170)
-
Sencha index.html 간단하게 만들기
index.html: app.js를 호출 app.jsApplication.js를 호출mainView 지정Ext.application({ extend: 'Home.Application', name: 'Home', requires: [ // This will automatically load all classes in the Home namespace // so that application classes do not need to require each other. 'Home.*' ], // The name of the initial view to create. mainView: 'Home.view.main.Main'});Applicat..
2024.12.15 -
Sencha charts 패키지 사용하기
생성한 charts 패키지를 붙여넣기index.htmlTest.jsExt.onReady(function () { var drawContainer = Ext.create('Ext.draw.Container', { renderTo: Ext.getBody(), // Render to the body of the HTML width: 200, // Width of the container height: 200, // Height of the container sprites: [ { type: 'circle', // Circle sprite type ..
2024.12.14 -
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