![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@deliverysolutions/ng-datatable
Advanced tools
It is a forked version of ng-datatable, updated to Angular 15, using Feather icons instead of Glyphicon for showing sorting arrows.
I am currently using custom CSS, to transform the fe-code icon 90 degrees as the default sort icon, and bolded + black chevron up & down icons accordingly. When feather releases their sort icons (should be soon, going by the related issues), will update the package to use those instead of the current patchwork.
.fe-bold {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'Feather' !important;
speak: none;
font-style: normal;
font-weight: bold;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fe-bold-transform90 {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'Feather' !important;
speak: none;
font-style: normal;
font-weight: bold;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Transform 90 degrees, specifically for fe-code for sorting */
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
display: inline-block;
}
.fe-bold-black {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'Feather' !important;
speak: none;
font-style: normal;
font-weight: bold;
font-variant: normal;
text-transform: none;
line-height: 1;
color: black;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
npm i @deliverysolutions/ng-datatable --save
AppModule.ts
import {NgModule} from "@angular/core";
...
import {DataTableModule} from "@deliverysolutions/ng-datatable";
@NgModule({
imports: [
...
DataTableModule
],
...
})
export class AppModule {
}
AppComponent.html
<table class="table table-striped" [mfData]="data" #mf="mfDataTable" [mfRowsOnPage]="5">
<thead>
<tr>
<th style="width: 20%">
<mfDefaultSorter by="name">Name</mfDefaultSorter>
</th>
<th style="width: 50%">
<mfDefaultSorter by="email">Email</mfDefaultSorter>
</th>
<th style="width: 10%">
<mfDefaultSorter by="age">Age</mfDefaultSorter>
</th>
<th style="width: 20%">
<mfDefaultSorter by="city">City</mfDefaultSorter>
</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of mf.data">
<td>{{item.name}}</td>
<td>{{item.email}}</td>
<td class="text-right">{{item.age}}</td>
<td>{{item.city | uppercase}}</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="4">
<mfBootstrapPaginator [rowsOnPageSet]="[5,10,25]"></mfBootstrapPaginator>
</td>
</tr>
</tfoot>
</table>
mfData
directivetable[mfData]
mfDataTable
mfData: any[]
- array of data to display in tablemfRowsOnPage: number
- number of rows should be displayed on page (default: 1000)mfActivePage: number
- page number (default: 1)mfSortBy: any
- sort by parametermfSortOrder: "asc" | "desc"
- sort order parametermfSortByChange: any
- sort by parametermfSortOrderChange: any
- sort order parametermfDefaultSorter
componentmfDefaultSorter
by: any
- specify how to sort data (argument for lodash function _.sortBy )mfBootstrapPaginator
componentDisplays buttons for changing current page and number of displayed rows using bootstrap template (css for bootstrap is required). If array length is smaller than current displayed rows on page then it doesn't show button for changing page. If array length is smaller than min value rowsOnPage then it doesn't show any buttons.
mfBootstrapPaginator
rowsOnPageSet: number
- specify values for buttons to change number of diplayed rowsFAQs
DataTable component for Angular framework
We found that @deliverysolutions/ng-datatable 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.