While using this starter kit, Im only able to get a list of forms.
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { FormioGrid } from 'angular-formio/grid';
import { FormManagerModule, FormManagerRoutes, FormManagerService, FormManagerConfig } from 'angular-formio/manager';
@NgModule({
imports: [
CommonModule,
FormioGrid,
FormManagerModule,
RouterModule.forChild(FormManagerRoutes())
],
declarations: [],
providers: [
FormManagerService,
{provide: FormManagerConfig, useValue: {
tag: 'common'
}}
]
})
export class FormModule { }
Which points to:
{api_url}/form?tags=common&type=form&limit=10&skip=0
I need a way to get resources, something like this:
{api_url}/form?tags=common&type=resource&limit=10&skip=0
Tried passing a parameter to provider with no luck.
providers: [
FormManagerService,
{provide: FormManagerConfig, useValue: {
tag: 'common',
type: 'resource'
}}
]
What I'm missing? Thanks.
You can pass type
& tags
value from query
property binding of formio-grid
component
<formio-grid
...
[query]="{tags: 'common', type: 'resource'}"
...
>
</formio-grid>