libs/core/dynamic-form/src/services/options-provider/options-provider.service.ts
An implementation of the DfOptionsProviderService can be used to dynamically provide dropdown options to the dynamic form component.
Methods |
|
Public Abstract getDfOptions | ||||||||
getDfOptions(expression: string | undefined)
|
||||||||
Gets the DfOptions from a component.
Parameters :
Returns :
Observable<DfOptions[]>
|
import { Observable } from 'rxjs';
import { DfOptions } from './options-provider.model';
/**
* An implementation of the DfOptionsProviderService can be used to dynamically provide dropdown options
* to the dynamic form component.
*/
export abstract class DfOptionsProviderService {
/**
* Gets the DfOptions from a component.
* @param expression The expression (id, JsonState expression, url or other param that is needed)
*/
public abstract getDfOptions(expression: string | undefined): Observable<DfOptions[]>;
}