Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndlano/h5p-editor-uuid
An H5P widget that sets the value of the field to a UUID
https://github.com/ndlano/h5p-editor-uuid
h5p h5p-widget
Last synced: about 5 hours ago
JSON representation
An H5P widget that sets the value of the field to a UUID
- Host: GitHub
- URL: https://github.com/ndlano/h5p-editor-uuid
- Owner: NDLANO
- License: mit
- Created: 2022-03-14T09:04:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T04:30:49.000Z (9 days ago)
- Last Synced: 2024-10-30T07:22:27.421Z (9 days ago)
- Topics: h5p, h5p-widget
- Language: JavaScript
- Homepage:
- Size: 1.17 MB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# h5p-editor-uuid
An H5P widget that sets the value of a field to a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
The widget does not render the input field.## How to use
This widget can be added to any field of type `text`.
It will use `H5P.createUUID` to generate a new UUID and set it as the field's value if the field does not already have a value.`semantics.json`:
```json
{
"label": "ID",
"name": "id",
"type": "text",
"widget": "uuid"
}
```It is not part of the H5P core, therefore it must be added as an editor dependency.
`library.json`:
```json
{
"editorDependencies": [
{
"machineName": "H5PEditor.UUIDWidget",
"majorVersion": 1,
"minorVersion": 0
},
]
}
```