How to use the @igo2/common.EntityTableScrollBehavior.Instant function in @igo2/common

To help you get started, we’ve selected a few @igo2/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infra-geo-ouverte / igo2-lib / demo / src / app / geo / workspace / workspace.component.ts View on Github external
}
    }
  });

  public view = {
    center: [-72, 47.2],
    zoom: 5
  };

  public workspaceStore = new WorkspaceStore([]);

  public selectedWorkspace$: Observable;

  public actionbarMode = ActionbarMode.Dock;

  public scrollBehavior = EntityTableScrollBehavior.Instant;

  constructor(
    private languageService: LanguageService,
    private dataSourceService: DataSourceService,
    private layerService: LayerService
  ) {}

  ngOnInit() {
    this.selectedWorkspace$ = this.workspaceStore.stateView
      .firstBy$(
        (record: EntityRecord) => record.state.selected === true
      )
      .pipe(
        map((record: EntityRecord) => {
          return record === undefined ? undefined : record.entity;
        })