File

src/app/GN2CommonModule/form/municipalities/municipalities.component.ts

Metadata

selector pnx-municipalities
styleUrls municipalities.component.scss
templateUrl municipalities.component.html

Inputs

bindAllItem

Type: false

debounceTime

Type: number

disabled

Type: boolean

label

Type: string

parentFormControl

Type: any

searchBar

Default value: false

valueFieldName

Type: string

Default value: id_area

Constructor

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() {}
}

results matching ""

    No results matching ""