A web component that generates a random string [0-9][A-Z][a-z].
Install the component using Bower:
Or download as ZIP.
$ bower install random-string --save
-
Import polyfill:
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/random-string/random-string.html">
-
Start using it!
<random-string></random-string>
Attribute | Options | Default | Description |
---|---|---|---|
length |
integer | 10 |
The number of characters. |
Method | Parameters | Returns | Description |
---|---|---|---|
generate() |
None. | Nothing. | Generates a new string. |
limit() |
None. | int. | The maximum number of characters. |
Event | Description |
---|---|
lengthChanged |
Triggers a new string to generate. |
For detailed changelog, check Releases.