/json-forms-zorro-wrapper

Ng Zorro wrapper for json forms lib

Primary LanguageTypeScriptOtherNOASSERTION

JsonForms based on ng-zorro

Demo

https://wojtek1150.github.io/json-forms-zorro-wrapper/

Documentation

See documentation at Plugion homepage For JsonSchema documentation check jsonforms core package For UI docs, see the documentation on ngzorro website.

Requirements

This plugin requires the following dependencies:

"ng-zorro-antd": "^13.1.1",
"lodash-es": "^4.17.21"

They should be installed automatically as they are peer dependencies. However, if for some reason you are using legacy-peer-deps = true you need to add them to the package.json manually

Installation

npm install @wojtek1150/jsonforms-zorro-wrapper

Usage

Simply import JsonFormsZorroModule into your project

import { JsonFormsZorroModule } from '@wojtek1150/jsonforms-zorro-wrapper';

@NgModule({
  imports: [JsonFormsZorroModule],
})

If you are using DateField, remember to add your locale for ng-zorro as module providers, for example:

import { en_US, NZ_I18N } from 'ng-zorro-antd/i18n';

@NgModule({
  providers: [{ provide: NZ_I18N, useValue: en_US }],
  imports: [JsonFormsZorroModule],
})