src/app/GN2CommonModule/form/municipalities/municipalities.component.ts
selector | pnx-municipalities |
styleUrls | municipalities.component.scss |
templateUrl | municipalities.component.html |
bindAllItem
|
Type: |
debounceTime
|
Type: |
disabled
|
Type: |
label
|
Type: |
parentFormControl
|
Type: |
searchBar
|
Default value: |
valueFieldName
|
Type:
Default value: |
constructor(_dfs: DataFormService, _commonService: any)
|
import { Component, OnInit, Input } from '@angular/core';
import { DataFormService } from '../data-form.service';
import { UntypedFormControl } from '@angular/forms';
import { CommonService } from '@geonature_common/service/common.service';
import { Observable } from 'rxjs';
@Component({
selector: 'pnx-municipalities',
templateUrl: './municipalities.component.html',
styleUrls: ['./municipalities.component.scss'],
})
export class MunicipalitiesComponent implements OnInit {
@Input() parentFormControl: UntypedFormControl;
@Input() label: string;
/**
* @deprecated Do not use this input
*/
@Input() searchBar = false;
@Input() disabled: boolean;
@Input() valueFieldName: string = 'id_area'; // Field name for value (default : id_area)
/**
* @deprecated Do not use this input
*/
@Input() bindAllItem: false;
/**
* @deprecated Do not use this input
*/ @Input() debounceTime: number;
constructor(
private _dfs: DataFormService,
private _commonService: CommonService
) {}
ngOnInit() {}
}