How to use the @smile-io/ember-polaris/utils/id.computedHelpTextId function in @smile-io/ember-polaris

To help you get started, we’ve selected a few @smile-io/ember-polaris 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 smile-io / ember-polaris / addon / components / polaris-labelled.js View on Github external
/**
   * ID for the error message div
   *
   * @type {String}
   * @private
   */
  errorId: computedErrorId('id').readOnly(),

  /**
   * ID for the help text div
   *
   * @type {String}
   * @private
   */
  helpTextId: computedHelpTextId('id').readOnly(),

  /**
   * Flag indicating whether to render the error component
   *
   * @type {Boolean}
   * @private
   */
  shouldRenderError: computed('error', function() {
    let error = this.get('error');
    return error && typeof error !== 'boolean';
  }).readOnly(),
});