ng-im-form-bootstrap
v1.1.2
Published
A flexible and elegant Angular UI library for building submittable dynamic forms — powered by Bootstrap.
Downloads
13
Maintainers
Readme
NG IM FORM powered by Bootstrap
A flexible and elegant Angular UI library for building submittable dynamic forms — powered by Bootstrap styling and drag-and-drop organization.
Easily create and manage form structures without writing a single line of code.
Features
✅ Dynamic Section Management – Add, rename, and remove multiple form sections.
✅ Rich Field Types – Supports text fields, text areas, select boxes, and radio button groups.
✅ Drag & Drop Reordering – Reorder both sections and fields visually.
✅ Bootstrap-Based Styling – Modern and responsive UI out of the box.
✅ Configurable Field Settings – Set labels, placeholders, validations, and default values.
✅ Reactive & Submittable – Fully functional Angular Reactive Forms.
✅ JSON Export/Import – Save or load form structures easily.
✅ Reusable Angular Library – Designed for modular integration into any Angular project.
✅ Lightweight & Extensible – Add new field types or behaviours with minimal effort.
Installation
Install the library and its required peer dependencies via npm. Use the following commands:
npm install ng-im-form-bootstrap
npm install [email protected]
npm install @fortawesome/[email protected]
Configure Styles
Add Bootstrap and Font Awesome styles to your global configuration in angular.json:
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/@fortawesome/fontawesome-free/css/all.min.css",
"src/styles.css"
],
"scripts": []Alternatively, if you prefer to import styles directly in your global stylesheet (styles.scss or styles.css):
@import "bootstrap/dist/css/bootstrap.min.css";
@import "@fortawesome/fontawesome-free/css/all.min.css";Import the Library Module
In your main app module (app.module.ts), import the FormBuilderModule or FormPreviewModule:
import { FormBuilderModule } from 'ng-im-form-bootstrap';
@NgModule({
imports: [
BrowserModule,
ReactiveFormsModule,
FormBuilderModule
],
bootstrap: [AppComponent]
})
export class AppModule {}Verify Installation
Once installed, you can use the component selector in any template:
<ng-im-form-builder [preset]="null"><ng-im-form-builder>If you see Bootstrap styling and Font Awesome icons properly rendered, your setup is complete 🎉
Current Version: 1.1.2
- Some bugs and issues have been fixed.
- Added 'JSON as string' type to the form body type selection.
- Added 60 seconds timeout functionality to the Form Preview HTTP request.
- Changed Form Preview module's response UI.
