-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for dynamic list and option data based on related input value
- Loading branch information
1 parent
360ddb6
commit dff4256
Showing
17 changed files
with
502 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
projects/ng-dynamic-forms/core/src/lib/model/misc/dynamic-form-control-data.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {Observable} from 'rxjs'; | ||
import {DynamicFormOptionConfig} from '../dynamic-option-control.model'; | ||
|
||
export interface DynamicFormControlDataRelation { | ||
rootPath?: string; | ||
id?: string; | ||
} | ||
|
||
export interface DynamicFormControlDataConfig { | ||
relation: DynamicFormControlDataRelation; | ||
service: any; | ||
} | ||
|
||
export interface DynamicFormControlListDataProvider<T> { | ||
fetchList(value: string): Observable<T[]>; | ||
} | ||
|
||
export interface DynamicFormControlOptionDataProvider<T> { | ||
fetchOptions(value: string): Observable<DynamicFormOptionConfig<T>[]>; | ||
} |
Oops, something went wrong.