Skip to content

Provides a pop-up colour picker functionality, turning a text field into a colour picker field.

Notifications You must be signed in to change notification settings

ninty9notout/silverstripe-colourpicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e929be1 · Sep 28, 2024

History

26 Commits
Oct 19, 2023
Oct 19, 2023
Mar 8, 2024
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023
Jan 25, 2014
Sep 28, 2024
Oct 19, 2023
Oct 19, 2023
Oct 19, 2023

Repository files navigation

SilverStripe Colour Picker Field

Does what it says on the box - provides a pop-up colour picker functionality, turning a text field into a colour picker field.

!https://raw.github.com/ninty9notout/silverstripe-colourpicker/master/colourpicker.png!

Uses the "jQuery MiniColors":http://labs.abeautifulsite.net/jquery-minicolors/ plugin by "A Beautiful Site":http://www.abeautifulsite.net/ for the colour picker, while using the built in entwine library to successfully bind the MiniColors plugin to the necessary elements.

Usage

There are various way to install this, but the easiest is to download the repository and add it to your SilverStripe root.

Once installed, you can use the following to initialise the colour picker field using the following:

new ColourPicker($name, $title)

Contributing

This field was made because a simple colour picker was required for a project, and existing colour picker fields that are out there were unsatisfactory. Please note that is still very young. The plan it to fully utilise MiniColors various functionalities as needed in the future.

Have any changes in mind?

Do your thing

Make a pull request

???

Profit