Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
boar-ng-common
Advanced tools
The boar-ng-common
library is a collection of reusable AngularJS UI components for the Emarsys Boar stack and Emarsys UI Framework.
You must have installed the angular-translate library.
Install boar-ng-common
to your application:
npm install boar-ng-common --save
In your application load the library after loading angular
:
require('boar-ng-common');
It is a paginator component.
this.pager = {
page: 0,
limit: 10,
total: 78
}
<e-pager page="ctrl.pager.page" page-size="ctrl.pager.limit" total="ctrl.pager.total"></e-pager>
It implements the Emarsys UI Framework's Steps component.
this.steps = {
step: 1,
steps: [
{ value: 'Description' },
{ value: 'Contenu du formulaire', disabled: true },
{ value: 'Destinataires' },
{ value: 'Champs de données' },
{ value: 'Après inscription' },
{ value: 'Code source' },
]
}
<e-steps steps="ctrl.steps.steps" step="ctrl.steps.step"></e-steps>
It implements the Emarsys UI Framework's Table component, with a search field, sorting, paging and action buttons for the table and the table rows.
this.characters = [
{ id: 1, name: "Daenerys Targaryen", gender: "female" },
{ id: 2, name: "Joffrey Baratheon", gender: "male" },
{ id: 3, name: "Tyrion Lannister", gender: "male" },
{ id: 4, name: "Sansa Stark", gender: "female" },
{ id: 5, name: "Eddard Stark", gender: "male" }
]
<e-table model="ctrl.characters" default-sort-field="id" default-sort-order="asc" show-search>
<e-table-button href="#/characters/new">Add a New Character</e-table-button>
<e-table-cell title="ID" sort-field="id">{{ row.id }}</e-table-cell>
<e-table-cell title="Character Name" sort-field="name">{{ row.name }}</e-table-cell>
<e-table-cell title="Gender" sort-field="gender">{{ row.gender | uppercase }}</e-table-cell>
<e-table-action tooltip="Edit" icon="#pencil" href="#/characters/{{ row.id }}"></e-table-action>
<e-table-action tooltip="Delete" icon="#trash-o" action="ctrl.killCharacter(row.id)"></e-table-action>
<e-table-pager></e-table-pager>
</e-table>
The search field and the pager can be removed.
FAQs
Common Emarsys UI AngularJS components
The npm package boar-ng-common receives a total of 8 weekly downloads. As such, boar-ng-common popularity was classified as not popular.
We found that boar-ng-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.