Enterprise-Builder
This library was generated with Angular CLI version 15.2.0.
Build
Run ng build enterprise-builder to build the project. The build artifacts will be stored in the dist/ directory.
License
You need to have a valid Library License key to use this package.
If you don't have one yet, please contact sales@form.io.
If you already have the Library License key, please be sure to set it on the Formio variable in your application
Formio.license = 'yourLibraryLicenseKey';
Running Demo
To run a demo of the Enterprise Builder, please follow these steps.
-
Make sure you have the Angular CLI installed on your machine.
-
Create a new application and add all dependencies into the application as described in the documentation
-
Add as a dependency @formio/enterprise-builder
-
Create Form Builder Configuration in the Builder Creator section of the Developer Portal.
-
Add the following to the routes.
src/app/app-routing.module.ts
...
import { FormBuilderIndexComponent } from '@formio/enterprise-builder';
const routes: Routes = [
{
path: '',
component: FormBuilderIndexComponent
}
];
...
-
Register enterprise-builder and bilder configuration within the main module by adding the following to the app.module.ts file.
src/app/app-routing.module.ts
...
import { FormBuilderModule, FormBuilderRoutes, FormBuilderService, FormBuilderConfig } from '@formio/enterprise-builder';
import { formBuilderOptions } from './formBuilderOptions';
import { editFormOptions } from './editFormOptions';
...
@NgModule({
declarations: [
...
],
imports: [
BrowserModule,
AppRoutingModule,
FormBuilderModule,
RouterModule.forChild(FormBuilderRoutes()),
],
providers: [
...
FormBuilderService,
{provide: FormBuilderConfig, useValue: {
editFormOptions,
formBuilderOptions
}}
],
...
})
...
-
Run the application, type ng serve