File

src/app/GN2CommonModule/map-list/map-data/map-data.component.ts

Metadata

selector pnx-map-data
styleUrls map-data.component.scss
templateUrl map-data.component.html

Inputs

apiEndPoint

Type: string

Outputs

pageChanged $event type: EventEmitter
paramChanged $event type: EventEmitter

Constructor

constructor(mapListService: MapListService, ngbModal: any, _commonService: any)

Methods

toggleExpandRow
toggleExpandRow(row: any)
Returns: void

Properties

index
index: number
Default value: 0
mapListService
mapListService: MapListService
ngbModal
ngbModal: any
rows
rows: any[]
table
table: any
import {
  Component,
  OnInit,
  ElementRef,
  ViewChild,
  Input,
  Output,
  OnChanges,
  EventEmitter,
} from '@angular/core';
import { MapService } from '../../map/map.service';
import { MapListService } from '../../map-list/map-list.service';
import { DatatableComponent } from '@swimlane/ngx-datatable';
import { FormControl } from '@angular/forms';
import { NgbModal, ModalDismissReasons } from '@ng-bootstrap/ng-bootstrap';
import { CommonService } from '@geonature_common/service/common.service';
import { ColumnActions } from '@geonature_common/map-list/map-list.component';

@Component({
  selector: 'pnx-map-data',
  templateUrl: './map-data.component.html',
  styleUrls: ['./map-data.component.scss'],
})
export class MapDataComponent implements OnInit {
  @ViewChild(DatatableComponent, { static: false }) table: DatatableComponent;
  @Input() apiEndPoint: string;
  @Output() paramChanged = new EventEmitter<any>();
  @Output() pageChanged = new EventEmitter<any>();

  index = 0;
  rows = []; // rows in data table

  constructor(
    public mapListService: MapListService,
    public ngbModal: NgbModal,
    private _commonService: CommonService
  ) {}

  ngOnInit() {}

  toggleExpandRow(row) {
    this.table.rowDetail.toggleExpandRow(row);
  }
}

results matching ""

    No results matching ""