How to use the @cardstack/core/utils/mappings.fieldComponents.findBy function in @cardstack/core

To help you get started, we’ve selected a few @cardstack/core 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 cardstack / cardstack / packages / cardhost / app / components / right-edge.js View on Github external
get selectedFieldTitle() {
    if (this.args.selectedField) {
      let { title } = fieldComponents.findBy('coreType', this.args.selectedField.type);
      return title;
    }

    return '';
  }

@cardstack/core

Core library for Cardstack, portable to both browser and server environments

MIT
Latest version published 7 months ago

Package Health Score

62 / 100
Full package analysis

Similar packages