Commit 35d75b20 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

VueColorPicker: added some prop to control format and self-containment

parent 9f30bd1f
......@@ -12,11 +12,24 @@ define([
template: template.trim(),
props: {
value: String,
format: {
type: String,
default: "rgb",
fallbackFormat: {
type: String,
default: "rgb",
selfcontain: Boolean,
ready: function() {
this.$els.input.value = this.value;
this.$colorpicker = $(this.$els.colorpicker);
console.log(this.$els.colorpicker, this.$el);
format: this.format || false,
fallbackFormat: this.fallbackFormat || false,
container: this.selfcontain ? this.$el : false,
component: ".input-group-addon:last",
}).on("changeColor", function(ev){
if (ev.color.origFormat !== null)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment