
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
fb-angular-datatables
Advanced tools
angular-datatables [](https://travis-ci.org/l-lin/angular-datatables) [](http://gruntjs.com/) [.
Manually
The files can be downloaded from:
The CSS file only contains
Twitter Bootstrap
styles to support datatables.
With Bower
bower install angular-datatables
Include the CSS, JS file in your index.html
file:
<script src="jquery.min.js"></script>
<script src="jquery.dataTables.min.js"></script>
<script src="angular.min.js"></script>
<script src="angular-datatables.min.js"></script>
<link rel="stylesheet" href="angular-datatables.css">
IMPORTANT: You must include the JS in this order. AngularJS MUST use jQuery and not its jqLite!
If you want the Twitter Bootstrap
support, then add the CSS file:
<link href="datatables.bootstrap.min.css" rel="stylesheet">
Declare dependencies on your module app like this:
angular.module('myModule', ['datatables']);
See github page.
dt-instance
where you provide a variable that will be populated with the DataTable instance
once it's rendered:<table id="foobar" datatable dt-options="dtOptions" dt-columns="dtColumns" dt-instance="dtInstance"></table>
The dtInstance
variable will be populated with the following value:
{
"id": "foobar",
"DataTable": oTable,
"dataTable": $oTable,
"reloadData": function(callback, resetPaging),
"changeData": function(newData),
"rerender": function()
}
DataTable is the DataTable API instance dataTable is the jQuery Object See http://datatables.net/manual/api#Accessing-the-API
For more information, please check the documentation.
Angular Datatables
is using Object.create() to instanciate options and columns.
When providing the DT options, Angular DataTables
will resolve every promises (except the attributes data
and aaData
) before rendering the DataTable.
For example, suppose we provide the following code:
angular.module('yourModule')
.controller('MyCtrl', MyCtrl);
function MyCtrl($q, DTOptionsBuilder) {
var vm = this;
vm.dtOptions = DTOptionBuilder.newOptions()
.withOptions('autoWidth', fnThatReturnsAPromise);
function fnThatReturnsAPromise() {
var defer = $q.defer();
defer.resolve(false);
return defer.promise;
}
}
The fnThatReturnsAPromise
will first be resolved and then the DataTable will be rendered with the option autoWidth
set to false
.
See CONTRIBUTING.
FAQs
angular-datatables [](https://travis-ci.org/l-lin/angular-datatables) [](http://gruntjs.com/) [![Stories in Ready](h
The npm package fb-angular-datatables receives a total of 0 weekly downloads. As such, fb-angular-datatables popularity was classified as not popular.
We found that fb-angular-datatables demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.