Optional
commonA 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.
Optional
decimals(for number) the number of allowed decimals
Optional
defaultThe default value of the field.
Optional
descriptionAn explanation text below the widget shown in the editor
Optional
enter(for text with html widget) what the html widget inserts when pressing enter
Optional
entity(for list) The name for a single entity in a list.
Optional
expanded(for group) Group is expanded by default
Optional
extraFurther attributes allowed in the params.
Optional
field(in lists only) defines a single field type in the list
Optional
fields(in groups only) a list of field definitions
Optional
fontThe 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.
Optional
importanceMore important fields have a more prominent style in the editor.
Optional
importantA help text that can be collapsed.
Optional
is(for group) unknown
Optional
labelThe text displayed in the editor for the entry. (localizable)
Optional
max(for number) the maximum number allowed (for list) the maximum number of elements
Optional
max(for text) the maximum number of characters of the text
Optional
min(for number) the minimum number allowed (for list) the minimum number of elements
The internal name (e.g. for referencing it in code)
Optional
optionalOptional fields don't have to be filled in.
Optional
options(for select) the options to choose from (for library) a list of library ubernames (whitespaces instead of hyphens as separators)
Optional
placeholderThe text displayed in a text box if the user has entered nothing so far.
Optional
regexp(for text) the regexp pattern the text must match
Optional
steps(for number) the allowed steps
Optional
sub(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}}?$/
Optional
tags(for text) list of allowed html tags.
The object type of this entry.
Optional
widgetName 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.