@@ -641,10 +641,15 @@ <h3 id="events-hide">hide</h3>
641
641
</ div >
642
642
643
643
< pre class ='prettyprint '>
644
- hide: function(color) {
645
- color.toHexString(); // #ff0000
646
- }
644
+ hide: function(color) {
645
+ color.toHexString(); // #ff0000
646
+ }
647
647
</ pre >
648
+
649
+ < div class ='example '>
650
+ < input type ='text ' value ='blanchedalmond ' name ='eventhide ' id ='eventhide ' />
651
+ < em id ='eventhideLabel ' class ='em-label '> </ em >
652
+ </ div >
648
653
</ div >
649
654
650
655
< h3 id ="events-show "> show</ h3 >
@@ -659,10 +664,15 @@ <h3 id="events-show">show</h3>
659
664
</ div >
660
665
661
666
< pre class ='prettyprint '>
662
- show: function(color) {
663
- color.toHexString(); // #ff0000
664
- }
667
+ show: function(color) {
668
+ color.toHexString(); // #ff0000
669
+ }
665
670
</ pre >
671
+
672
+ < div class ='example '>
673
+ < input type ='text ' value ='blanchedalmond ' name ='eventshow ' id ='eventshow ' />
674
+ < em id ='eventshowLabel ' class ='em-label '> </ em >
675
+ </ div >
666
676
</ div >
667
677
668
678
< h3 id ="events-beforeShow "> beforeShow</ h3 >
@@ -686,6 +696,51 @@ <h3 id="events-beforeShow">beforeShow</h3>
686
696
</ div >
687
697
</ div >
688
698
699
+ < h3 id ="events-dragstart "> dragstart</ h3 >
700
+
701
+ < div class ='option-content '>
702
+ < div class ='description '>
703
+ < p >
704
+ Called at the beginning of a drag event on either
705
+ hue slider, alpha slider, or main color picker areas
706
+ </ p >
707
+ </ div >
708
+
709
+ < pre class ='prettyprint '>
710
+ $(element).on("dragstart.spectrum"): function(e, color) {
711
+ color.toHexString(); // #ff0000
712
+ }
713
+ </ pre >
714
+
715
+ < div class ='example '>
716
+ < input type ='text ' value ='blanchedalmond ' name ='eventdragstart ' id ='eventdragstart ' />
717
+ < em id ='eventdragstartLabel ' class ='em-label '> </ em >
718
+ </ div >
719
+ </ div >
720
+
721
+ < h3 id ="events-dragstop "> dragstop</ h3 >
722
+
723
+ < div class ='option-content '>
724
+ < div class ='description '>
725
+ < p >
726
+ Called at the end of a drag event on either
727
+ hue slider, alpha slider, or main color picker areas
728
+ </ p >
729
+ </ div >
730
+
731
+ < pre class ='prettyprint '>
732
+ $(element).on("dragstop.spectrum"): function(e, color) {
733
+ color.toHexString(); // #ff0000
734
+ }
735
+ </ pre >
736
+
737
+ < div class ='example '>
738
+ < input type ='text ' value ='blanchedalmond ' name ='eventdragstop ' id ='eventdragstop ' />
739
+ < em id ='eventdragstopLabel ' class ='em-label '> </ em >
740
+ </ div >
741
+ </ div >
742
+
743
+
689
744
< h2 id ="methods "> Methods</ h2 >
690
745
< pre class ='prettyprint '>
691
746
$("#picker").spectrum("show");
0 commit comments