Skip to content
This repository has been archived by the owner. It is now read-only.
Rating field for Cockpit CMS (Next)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
components
LICENSE
README.md
bootstrap.php
components.js
module.json
package.json
preview.png

README.md

Rating Field for Cockpit

Preview

Installation

$ cd cockpit/modules/addons
$ git clone git@github.com:attitude/field-rating.git

Note: Directory must be named field-rating for Cockpit to register addon.

Options

Paramenter Type Description
minimum int Rating minimum, default: 0
maximum int Rating maximum, default: 5
icon string Icon name, default: star
remove boolean Removes rating by setting null, instead of setting minimum, default: false
precision 0 … 0.5 Fraction to round number, maximum of 3 decimal places, example: 0.25 will round number in steps of 0.25: 0, 0.25, 0.5, 0.75,…

Note: Half stars are not supported, since icon can be changed and there is only star icon available as half icon. Numeric value is always displayed.

Feel free to test it and let me know @martin_adamko how works for you. Feel free to open issue if you find one.

Enjoy!

You can’t perform that action at this time.