當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript main.EventService類代碼示例

本文整理匯總了TypeScript中ag-grid/main.EventService的典型用法代碼示例。如果您正苦於以下問題:TypeScript EventService類的具體用法?TypeScript EventService怎麽用?TypeScript EventService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了EventService類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: addColumns

 protected addColumns(columns: Column[]) {
     if (this.gridOptionsWrapper.isFunctionsPassive()) {
         this.eventService.dispatchEvent(Events.EVENT_COLUMN_VALUE_ADD_REQUEST, {columns: columns} );
     } else {
         this.columnController.addValueColumns(columns);
     }
 }
開發者ID:jarrhead777,項目名稱:ag-grid-enterprise,代碼行數:7,代碼來源:valueColumnsPanel.ts

示例2: addColumns

 protected addColumns(columns: Column[]) {
     if (this.gridOptionsWrapper.isRowGroupPassive()) {
         this.eventService.dispatchEvent(Events.EVENT_COLUMN_PIVOT_ADD_REQUEST, {columns: columns} );
     } else {
         this.columnController.addPivotColumns(columns);
     }
 }
開發者ID:ycmag,項目名稱:ag-grid-enterprise,代碼行數:7,代碼來源:pivotColumnsPanel.ts

示例3: removeColumns

 protected removeColumns(columns: Column[]): void {
     if (this.gridOptionsWrapper.isFunctionsPassive()) {
         this.eventService.dispatchEvent(Events.EVENT_COLUMN_VALUE_REMOVE_REQUEST, {columns: columns} );
     } else {
         var columnsCurrentlyValueColumns = Utils.filter(columns, (column: Column) => column.isValueActive() );
         this.columnController.removeValueColumns(columnsCurrentlyValueColumns);
     }
 }
開發者ID:jarrhead777,項目名稱:ag-grid-enterprise,代碼行數:8,代碼來源:valueColumnsPanel.ts

示例4: removeColumns

 protected removeColumns(columns: Column[]): void {
     if (this.gridOptionsWrapper.isFunctionsPassive()) {
         this.eventService.dispatchEvent(Events.EVENT_COLUMN_PIVOT_REMOVE_REQUEST, {columns: columns} );
     } else {
         var columnsPivoted = Utils.filter(columns, (column: Column) => column.isPivotActive() );
         this.columnController.removePivotColumns(columnsPivoted);
     }
 }
開發者ID:jarrhead777,項目名稱:ag-grid-enterprise,代碼行數:8,代碼來源:pivotColumnsPanel.ts

示例5: removeColumns

 protected removeColumns(columns: Column[]) {
     if (this.gridOptionsWrapper.isRowGroupPassive()) {
         this.eventService.dispatchEvent(Events.EVENT_COLUMN_ROW_GROUP_REMOVE_REQUEST, {columns: columns} );
     } else {
         // this panel only allows dragging columns (not column groups) so we are guaranteed
         // the dragItem is a column
         var rowGroupColumns = this.columnController.getRowGroupColumns();
         columns.forEach( column => {
             var columnIsGrouped = rowGroupColumns.indexOf(column) >= 0;
             if (columnIsGrouped) {
                 this.columnController.removeRowGroupColumn(column);
                 this.columnController.setColumnVisible(column, true);
             }
         });
     }
 }
開發者ID:ycmag,項目名稱:ag-grid-enterprise,代碼行數:16,代碼來源:rowGroupColumnsPanel.ts


注:本文中的ag-grid/main.EventService類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。