OptionalcommonA common field is set for all instances of the library at once. In the editor, all common fields are displayed in a group at the bottom. Use this for localization / translations.
Optionaldecimals(for number) the number of allowed decimals
OptionaldefaultThe default value of the field.
OptionaldescriptionAn explanation text below the widget shown in the editor
Optionalenter(for text with html widget) what the html widget inserts when pressing enter
Optionalentity(for list) The name for a single entity in a list.
Optionalexpanded(for group) Group is expanded by default
OptionalextraFurther attributes allowed in the params.
Optionalfield(in lists only) defines a single field type in the list
Optionalfields(in groups only) a list of field definitions
OptionalfontThe font choices the user has in the HTML editor widget. If set to true, the editor will display the default choices and the style will be allowed by the sanitization filter. All other styles will be removed.
You an also specify lists of allowed CSS values with a label. These are currently ignored in the server-side CSS style filter, though.
OptionalimportanceMore important fields have a more prominent style in the editor.
OptionalimportantA help text that can be collapsed.
Optionalis(for group) unknown
OptionallabelThe text displayed in the editor for the entry. (localizable)
Optionalmax(for number) the maximum number allowed (for list) the maximum number of elements
Optionalmax(for text) the maximum number of characters of the text
Optionalmin(for number) the minimum number allowed (for list) the minimum number of elements
The internal name (e.g. for referencing it in code)
OptionaloptionalOptional fields don't have to be filled in.
Optionaloptions(for select) the options to choose from (for library) a list of library ubernames (whitespaces instead of hyphens as separators)
OptionalplaceholderThe text displayed in a text box if the user has entered nothing so far.
Optionalregexp(for text) the regexp pattern the text must match
Optionalsteps(for number) the allowed steps
Optionalsub(for library) an id identifying subcontent, set by the editor; Must be formatted like this: /^{?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}}?$/
Optionaltags(for text) list of allowed html tags.
The object type of this entry.
OptionalwidgetName of the widget to use in the editor.
This is an entry in the semantics of a library. The semantics define how content parameters must look like.
Note: Attributes can only be used by specific semantic types. See https://h5p.org/semantics for a full reference.