From 81f5fa54015def989837b4845abb8cd84d9d7685 Mon Sep 17 00:00:00 2001 From: Rakshit Date: Sat, 10 Aug 2024 10:02:33 +0530 Subject: [PATCH] updated the docs --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 1e8965e..5dc7f4e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@

-> [!NOTE] +> [!NOTE] > This is a folk of zebzhao's [repo](https://github.com/zebzhao/Angular-QueryBuilder) to maintence with the latest Angular A modernized Angular 4+ query builder based on jQuery QueryBuilder. Support for heavy customization with Angular components and provides a flexible way to handle custom data types. @@ -28,12 +28,12 @@ $ npm install @angular-ex/ngx-condition-builder --save ##### `app.module.ts` ```javascript -import { QueryBuilderModule } from "angular2-query-builder"; +import { NgxConditionBuilderModule } from '@angular-ex/ngx-condition-builder'; import { AppComponent } from "./app.component" @NgModule(imports: [ ..., - QueryBuilderModule, + NgxConditionBuilderModule, IonicModule.forRoot(AppComponent) // (Optional) for IonicFramework 2+ ]) export class AppModule { } @@ -42,12 +42,12 @@ export class AppModule { } ##### `app.component.html` ```html ... - + ... ``` ##### `app.component.ts` ```javascript -import { QueryBuilderConfig } from 'angular2-query-builder'; +import { ConditionBuilderConfig } from '@angular-ex/ngx-condition-builder'; export class AppComponent { query = { @@ -57,8 +57,8 @@ export class AppComponent { {field: 'gender', operator: '>=', value: 'm'} ] }; - - config: QueryBuilderConfig = { + + config: ConditionBuilderConfig = { fields: { age: {name: 'Age', type: 'number'}, gender: { @@ -78,11 +78,11 @@ export class AppComponent { ##### `app.component.html` ```html - + - + ``` ##### `app.component.ts` @@ -94,7 +94,7 @@ query = { ] }; -config: QueryBuilderConfig = { +config: ConditionBuilderConfig = { fields: { birthday: {name: 'Birthday', type: 'date', operators: ['=', '<=', '>'] defaultValue: (() => return new Date()) @@ -107,11 +107,11 @@ config: QueryBuilderConfig = { ##### `app.component.html` ```html - + ``` ##### `app.component.ts` ```javascript -classNames: QueryBuilderClassNames = { +classNames: ConditionBuilderClassNames = { removeIcon: 'fa fa-minus', addIcon: 'fa fa-plus', arrowIcon: 'fa fa-chevron-right px-2', @@ -146,7 +146,7 @@ Example of how you can completely customize the query component with another lib #### `app.component.html` ```html - + @@ -192,7 +192,7 @@ Example of how you can completely customize the query component with another lib ... - + ``` ## Property Bindings Quick Reference