Angular forms for django rest framework
Project description
This repo provides Django mixins and Angular library for rapid development of create/edit dialogs for django rest framework. It depends on Angular5 together with Material UI.
On the django side, extend your Viewset to use AngularFormMixin and optionally configure the mixin by providing either layout information or field defaults (such as css classes).
On angular side, simply point the library to Viewset URL to display either editable dialog or display the form in-page and subscribe to get notification when a resource is created/saved.
Demo and sample source files
See demos at http://mesemus.no-ip.org:12569
Installation
Django side:
pip install django-angular-dynamic-forms
Angular side:
npm install –save django-angular-dynamic-forms
and add DjangoFormModule to imports. You will need to provide your own ErrorService for showing communication errors back to the user. See the demo/angular/src/app/mat-error.service.ts for an example implementation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-angular-dynamic-forms-0.5.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1e8ba47fea8e88033fd1c27a42c0ab4e7bd4da9301b5c41724c18966335358 |
|
MD5 | 29e5cb7409b091ef0c685421e23ff442 |
|
BLAKE2b-256 | abfd878f05a5bf81c479c65c2a01adda345cd4f80f18d523c37e84bcaa20edc5 |