UNPKG

api-console-assets

Version:

This repo only exists to publish api console components to npm

28 lines (25 loc) 539 B
<!-- @license Copyright 2017 Mulesoft. All rights reserved. --> <link rel="import" href="../../polymer/polymer.html"> <link rel="import" href="../../iron-validator-behavior/iron-validator-behavior.html"> <script> Polymer({ is: 'number-required', behaviors: [ Polymer.IronValidatorBehavior ], properties: { // Error message to display message: { type: String, value: 'Must have number' } }, validate: function(value) { return /\d/.test(value); } }); </script>