ngx-datatable

Angular ngx-datatable multiple data in one column

百般思念 提交于 2019-12-05 04:37:38
I've got a little problem adding more then one prop to column in ngx-datatable: columns = [ { prop: 'semesterName', name: 'סמסטר', resizeable: false }, { prop: 'eventName', name: 'מפגש', resizeable: false }, { prop: 'when', name: 'מועד מפגש', resizeable: false }, { prop: 'lecturerName', name: 'מרצה', resizeable: false }, { prop: 'hugName', name: 'חוג', resizeable: false }, ]; I need to display two props in one column. Like 'eventName' and 'when' in one column. The model: export class Course { semester: string; semesterName: string; courseObject: string; course: string; courseName: string;

Unable to reorder columns in angular ngx-datatable

 ̄綄美尐妖づ 提交于 2019-12-03 22:21:37
I am working on angular ngx-datatables, where I need to achieve its column reorder functionality. But its not working(not getting any error), also column's width is not changing on dragging the line. I have added below css files in angular.json file. Do it require any js file? "node_modules/@swimlane/ngx-datatable/release/components/datatable.component.css", "node_modules/@swimlane/ngx-datatable/release/themes/material.css", "node_modules/@swimlane/ngx-datatable/release/themes/dark.css", "node_modules/@swimlane/ngx-datatable/release/assets/icons.css" I am following this link. @Component({

Implementing NGX Datatable filtering on all columns

一曲冷凌霜 提交于 2019-12-03 09:45:36
问题 I've been trying to get this working with no luck. I've been referencing these resources for help: http://swimlane.github.io/ngx-datatable/#filter https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/filter.component.ts Basically i just want to allow my filter to apply to more than a single column, without implementing code to handle every column. (Some datatables have 20+ columns!) Example Code: //HTML <input type='text' placeholder='Filter' (keyup)='updateFilter($event.target

ngx-DataTable sort on a column not working Angular 4

爱⌒轻易说出口 提交于 2019-12-01 16:18:10
Though i'm very much new to angular, i'm facing some difficulties using ngx-DataTable. I am using simple ngx-DataTable for simple operations. The problem is on a column, sort is not working though i've declared attr as [sortable]=true. Here's code. Table Definition: <ngx-datatable [columns]="columns" [columnMode]="'force'" [headerHeight]="40" [footerHeight]="50" [rowHeight]="'auto'" [limit]="10" [rows]='contacts'> DataTable Contains two columns and Definitions are as as follows. <ngx-datatable-column [width]="50" [resizeable]="true" [sortable]="true" [draggable]="true" [canAutoResize]="true"