Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 2 months ago
JSON representation

An H5P widget that sets the value of the field to a UUID

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
},
]
}
```