File

libs/core/dynamic-form/src/services/options-provider/options-provider.service.ts

Description

An implementation of the DfOptionsProviderService can be used to dynamically provide dropdown options to the dynamic form component.

Index

Methods

Methods

Public Abstract getDfOptions
getDfOptions(expression: string | undefined)

Gets the DfOptions from a component.

Parameters :
Name Type Optional Description
expression string | undefined No

The expression (id, JsonState expression, url or other param that is needed)

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[]>;
}

results matching ""

    No results matching ""