** Updated for Angular 5 here **
Demo application and examples for the Angular 2 data table
Demo application and examples for the Angular 2 data table (https://github.com/ggmod/angular-2-data-table)
License: MIT License
Demo application and examples for the Angular 2 data table
reload(params) method want to push
This module is NOT supported, and does NOT run with a clean pull.
ng build --prod fails
It is written incorrectly and the 'is not an NgModule' is a sign of bad coding.
ggmod is no longer supporting this, please look elsewhere for a table.
How to configure responsive data-table ?!
I got above error in Angular2 CLI any solution?
I have tried to get datatable working but get this error
PathwayDetailComponent.html:1 ERROR TypeError: Cannot read property 'selectedRow' of undefined
at Object.View_PathwayDetailComponent_2.co [as updateDirectives] (PathwayDetailComponent.html:1)
at Object.debugUpdateDirectives [as updateDirectives] (vendor.dll.js:13234)
at checkAndUpdateView (vendor.dll.js:12572)
at callViewAction (vendor.dll.js:12935)
at execEmbeddedViewsAction (vendor.dll.js:12893)
at checkAndUpdateView (vendor.dll.js:12573)
at callViewAction (vendor.dll.js:12935)
at execComponentViewsAction (vendor.dll.js:12867)
at checkAndUpdateView (vendor.dll.js:12578)
at callViewAction (vendor.dll.js:12935)
I have a complex header with rowspan and colspan. How I can make it with data-table-column ?
Thank you.
If this helps anyone from having to do a Google search, going through and commenting out moduleId: string; lines helped me get this puppy to run in one of my components in Angular 4 if you get that compiling error it is expecting a string.
Thank you for the kind contribution author!
I have data like user:[{id:1,name:'xyx',profile:{pic:'abc','role':2}}]. How i will display profile.pic.
Hi,
Does it support Angular 2.1.0 version? Please let me know
Hi sir @ggmod ,
I wanna add context menu when right click in data row. How i can do it?
Many Thanks.
How to new line in header title
i want specific to new line
core.es5.js:350 Uncaught reflect-metadata shim is required when using class decorators
Man there is like 6 versions of this angular data table and if you read the documentation for
4 its says to install 2 then 2 conflicts with 4 and damn what the hell anyway. This tool is not
worth it.
I get this error "ERROR in DataTableModule is not an NgModule" while building my application, but datatables works well.
...
import { DataTableModule } from 'angular-2-data-table';
...
@NgModule({
imports: [
...
DataTableModule,
...
],
...
})
export class AppModule { }
My Angular version is 2.4.5
I am trying to use pagination feature, but I have an issue with moving to next page, it always increase 2 in each step
{offset: 0, limit: 2}
{offset: 2, limit: 2}
{offset: 4, limit: 2}
{offset: 6, limit: 2}
Hi,
I'm using the component and it's working, except for the pagination.
Follow my component class:
import { DataTableResource } from "angular-4-data-table";
import { UserList } from "./../../models/userList";
import { Component, OnInit } from "";
import { UserService } from "../../services/user-service.services";
`
@component({
selector: "userList-cmp",
moduleId: module.id,
templateUrl: "userList.component.html",
providers: [UserService]
})
export class UserListComponent implements OnInit {
userList: Array = new Array();
itemResource: any;
userlistCount = 10;
`
constructor(private userService: UserService) {
console.log("construtor");
}
async ngOnInit() {
await this.getUsers();
}
private async getUsers() {
await this.userService.getUsers().subscribe(
res => {this.userList = res; this.itemResource = new DataTableResource(res); this.userlistCount = this.userList.length; }
);
}
}
`
HTML parameters:
<data-table [items]="userList" [itemCount]="userlistCount" [limit]="2">
Can you help me?
Hi all,
below is my result JSON from api. how to bind this data to Datatable please help me .
[{"Building":"B85","DeviceID":"402072","PumpNo":3,"EventDateTime":"2017-01-30T23:16:00"},{"Building":"B85","DeviceID":"402072","PumpNo":6,"EventDateTime":"2017-01-30T23:17:00"},{"Building":"B85","DeviceID":"402072","PumpNo":7,"EventDateTime":"2017-01-30T23:17:00"},{"Building":"B85","DeviceID":"402072","PumpNo":8,"EventDateTime":"2017-01-30T23:09:00"}]
Hi all,
i'm trying to use this api with my angular app, but i'm getting this error
ERROR TypeError: this.itemResource.query is not a function
help me plz
I have an angular App, when i build and host the site in IIS, everything is cool except the Data Table. The data table is not rendering any data or not showing. There is no console errors. Even i found the empty HTML code that i copy pasted below.
Production buildn Command that i used:
ng build --prod --base-href /MyAPP/
The Same thing is working with following command: Which is Dev Build. Data Table is working well with this build command.
ng build --base-href /MyAPP/
I'm using:
Bootstrap 3.3.7
Angular Details:
λ ng -v
@angular/cli: 1.3.0
node: 6.11.0
os: win32 x64
angular/animations: 4.3.6
angular/common: 4.3.6
angular/compiler: 4.3.6
angular/core: 4.3.6
angular/forms: 4.3.6
angular/http: 4.3.6
angular/platform-browser: 4.3.6
angular/platform-browser-dynamic: 4.3.6
angular/router: 4.3.6
angular/cli: 1.3.0
angular/compiler-cli: 4.3.6
angular/language-service: 4.3.6
I found this empty HTML code which is not rendering anything.
<data-table _ngcontent-c7="" id="schedule-grid" style="font-size: 14px !important;">
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
<!---->
<!---->
</data-table-column>
<data-table-column _ngcontent-c7="">
<!---->
<!---->
</data-table-column>
</data-table>
What would be the issue?
Please kindly help and suggest the fix. Kind of stuck here!!!
I tried to use this package in angular 5 but got error:
Can't bind to 'pagination_limit' since it isn't a known property of 'data-table'.
Data table pagination is not working as intended.
Steps to Reproduce:-
When we are in step 4 the "<" button should be disabled and also data should not load in this way.
I would recommend when the page limit is changed navigate to page one and reload the data from page one. Behind the screen I would say reset page number to zero, offset to zero.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.