Sorry, no results found for "".
RFC 4122 UUID of plugin expressed in URL-safe base64 format
"RMAMRffBRlmBuDlQsIWZ0g"
NPM package name of the public plugin you want to install. For public plugins, that's the only attribute you need to pass.
"datocms-plugin-star-rating-editor"
The name of the plugin. Only to be passed if package name key is not specified.
"5 stars"
A description of the plugin. Only to be passed if package name key is not specified.
"A better rating experience!"
The entry point URL of the plugin. Only to be passed if package name key is not specified.
"https://cdn.rawgit.com/datocms/extensions/master/samples/five-stars/extension.js"
Permissions granted to this plugin. Only to be passed if package name key is not specified.
The type of field extension this legacy plugin implements. Only to be passed if package name key is not specified.
Pass this field only if you plan to create a legacy plugin. Modern plugins declare their capabilities at run-time.
"field_editor"
Field editor plugin
Sidebar plugin
Field addon plugin
On which types of field in which this legacy plugin can be used. Only to be passed if package name key is not specified.
Pass this field only if you plan to create a legacy plugin. Modern plugins declare their capabilities at run-time.
["integer", "float"]
The schema for the parameters this legacy plugin can persist
This field makes sense for legacy plugins only. Modern plugins declare can store anything they want in the parameters attribute.
{
global: [
{ id: "devMode", type: "boolean", label: "Run in development mode" },
],
instance: [
{
id: "halfStars",
type: "boolean",
label: "Allow half stars ratings?",
default: false,
hint: "If enabled, rate using whole stars, if enabled, it doesn't use half-steps",
},
{
id: "totalStars",
type: "integer",
label: "Amount of stars to show",
default: 5,
hint: "",
},
],
}
Returns a resource object of type plugin