전체 글(809)
-
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 -
Spring boot request header 정보 출력하기
Filter 사용415 에러 등이 발생했을 때, header값이 어떤 값이 들어왔는지 확인이 안될 때 사용하면 좋을 것 같음body는 한번 사용되면, 사라지기 때문에 ContentCachingRequestWrapper wrappedRequest로 받아서 별도 처리해야 함정상적으로 처리되면 body가 출력되지만, 에러가 발생하는 경우(415 등) body는 null값이 출력됨@Slf4j@Componentpublic class RequestLoggingFilter implements Filter { @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOExc..
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 -
Sencha 이미지 원본 사이즈로 보여주기
load 이벤트에서는 layout이 처음에 refresh되지 않기 때문에 afterrender를 사용하여 onload()를 발생시킴{ xtype: 'image', //flex: 3, src: '/resources/image/floor_plan.png', alt: '도면', margin: '0 10 0 0', listeners: { afterrender: function(image) { const domImage = image.getEl().dom; domImage.onload = function() { const naturalWidth = domImage.naturalWidth; const naturalHeight = domImage.naturalHeight; image.s..
2024.12.08 -
Sencah treepanel에서 1 depth까지만 펼치기
getPath()를 통해서 원하는 depth를 설정하고, expand() 처리를 함success: function (response) { const data = Ext.decode(response.responseText); const treeData = buildTree(data); store.setRoot({ id: 0, expanded: true, children: treeData }); const rootNode = store.getRootNode(); const treeGrid = Ext.ComponentQuery.query('#location')[0]; treeGrid.getSelectionModel().select(rootNode); //treeGrid.expandAll(); rootNo..
2024.12.08