How to use the @ovh-ux/ui-kit.core/src/js/component-utils.hasAttributeValue function in @ovh-ux/ui-kit

To help you get started, we’ve selected a few @ovh-ux/ui-kit 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 ovh-ux / ovh-ui-kit / packages / components / field / src / js / field.controller.js View on Github external
.map((control) => {
        // Get all ids available on controls
        if (hasAttributeValue(control, 'id')) {
          this.ids.push(getAttribute(control, 'id'));
        }

        return getAttribute(control, 'name');
      })
      .reduce((_controls_, name) => {
github ovh-ux / ovh-ui-kit / packages / components / field / src / js / field.controller.js View on Github external
attributes.forEach((attributeName) => {
        if (hasAttributeValue(controlElement, attributeName)) {
          validationParameters[validationName] = getAttribute(controlElement, attributeName);
        }
      });
    });
github ovh-ux / ovh-ui-kit / packages / components / field / src / js / field.controller.js View on Github external
      .filter(control => hasAttributeValue(control, 'name'))
      .map((control) => {