0.1.9 • Published 2 months ago
bibliolib-filter v0.1.9
BibliolibFilter
This library is a filter component for the bibliolib project. It is used to filter and order the list of some items.
Installation
npm install bibliolib-filter
Usage
Import the material theme in your angular.json
"styles": [
"@angular/material/prebuilt-themes/deeppurple-amber.css",
"other styles..."
]
Import animations in your app.module.ts or app.config.ts
import { provideAnimations } from '@angular/platform-browser/animations';
// other imports...
export const appConfig: ApplicationConfig = {
providers: [provideAnimations(), other providers...]
};
Import the module in your app.module.ts
import { BibliolibFilterModule } from 'bibliolib-filter';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BibliolibFilterModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Use the component in your app.component.html
<bibliolib-filter
[mode]="mode"
[orderConfig]="orderConfig"
[filterConfig]="filterConfig"
[activeFilterList]="activeFilterList"
[lang]="'fr-FR'"
(orderChange)="onOrderChange($event)"
(filterChange)="onFilterChange($event)"
(searchChange)="onSearchChange($event)">
</bibliolib-filter>
Inputs
Name | Type | Default | Description |
---|---|---|---|
mode | string | 'filter-order' | The mode of the filter. Can be 'filter', 'order' or 'filter-order'. |
orderConfig | FilterConfig.IOrderItemConfig[] | [] | The configuration of the order. |
filterConfig | FilterConfig.IFullFilterItemConfig[] | [] | The configuration of the filter. |
activeFilterList | FilterConfig.IFullFilterItemConfig[] | [] | The list of active filters. |
lang | string | 'fr-FR' | The language of the filter : 'fr-FR' or 'en-US'. |
Outputs
Name | Type | Description |
---|---|---|
orderChange | EventEmitter<FilterConfig.IOrderItemForRequest> | The event emitted when the order is changed. |
filterChange | EventEmitter<FilterConfig.IFullFilterItemConfig[]> | The event emitted when the filter is changed. |
searchChange | EventEmitter | The event emitted when the search input is changed. |
License
MIT
Author
Github @reyvaxreecded. Github @Quezaquo.
Keywords
- Angular
- Filter
- Bibliolib
- Material
0.1.9
2 months ago
0.1.8
2 months ago
0.1.51
3 months ago
0.1.7
3 months ago
0.1.6
3 months ago
0.1.5
3 months ago
0.1.45
3 months ago
0.1.46
3 months ago
0.1.47
3 months ago
0.1.48
3 months ago
0.1.4
3 months ago
0.1.3
3 months ago
0.1.2
4 months ago
0.1.1
4 months ago
0.1.0
4 months ago
0.0.9
4 months ago
0.0.3
4 months ago
0.0.2
4 months ago
0.0.8
4 months ago
0.0.5
4 months ago
0.0.4
4 months ago
0.0.7
4 months ago
0.0.6
4 months ago
0.0.1
5 months ago