분류 전체보기(746)
-
Sencha grid의 특정 header의 filter 제거하기
CSS 추가/* Hide filter dropdown in grid header for columns with 'hide-filter-trigger' class */.hide-filter-trigger .x-column-header-trigger { display: none !important;}이벤트 추가 listeners: { afterrender: function (grid) { // Define columns for which the filter dropdown should be hidden const columnsToHideFilter = ['test', 'temp']; // Hide the filter dropdown for specific co..
2025.01.11 -
Java get 방식으로 파라메터 전송할때 encoding
import java.net.URLEncoder;import java.nio.charset.StandardCharsets;public class URLEncoderExample { public static void main(String[] args) { try { String value = "Hello World!"; String encodedValue = URLEncoder.encode(value, StandardCharsets.UTF_8); System.out.println(encodedValue); // Output: Hello+World%21 } catch (Exception e) { e...
2025.01.11 -
AUIGrid 선택된 row 및 cell 정보 가져오기
// Assuming 'myGrid' is your AUIGrid instancelet selectedItems = AUIGrid.getSelectedItems(myGrid);if (selectedItems.length > 0) { // Get the first selected item let selectedItem = selectedItems[0]; // Access the dataField of the selected column let dataField = selectedItem.dataField; // Column's dataField console.log("Selected Column's dataField:", dataField);}
2025.01.11 -
AUIGrid click 이벤트
cellClick: Triggered when a cell is clicked.cellDoubleClick: Triggered when a cell is double-clicked.cellEditEnd: Triggered after a cell edit is completed.headerClick: Triggered when a column header is clicked.
2025.01.11 -
Sencha grid의 특정 셀을 더블클릭했을 때, 작동하게 하기
listeners: { cellDoubleClick: function(event) { // Check if the clicked column's dataField is 'A' if (event.dataField === 'A') { // Handle the double-click event for 'A' column only console.log("Double-clicked on column A, Row Index: " + event.rowIndex); } }}
2025.01.11 -
Javascript or(||)를 oracle의 in 구현하기
기존 처리 방식if(a === 'test1' || a === 'test2') {}in 처럼 구현if(['test1', 'test2'].includes(a)) {}
2025.01.11