mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #23403 from gentoo90/jquery.colorpicker
jquery.colorpicker: make disable field in options optional
This commit is contained in:
Vendored
+1
-1
@@ -31,7 +31,7 @@ interface JQueryColorpickerOptions {
|
||||
closeOnOutside?: boolean;
|
||||
color?: string;
|
||||
colorFormat?: string;
|
||||
disabled: boolean;
|
||||
disabled?: boolean;
|
||||
draggable?: boolean;
|
||||
duration?: string;
|
||||
format?: string;
|
||||
|
||||
@@ -70,6 +70,9 @@ colorpicker.colorpicker("destroy");
|
||||
colorpicker.colorpicker("setColor", "#deadbeef");
|
||||
colorpicker.colorpicker("option", "disabled", true);
|
||||
|
||||
// check if all options are optional
|
||||
let defaultColorpicker = $("<input type=\"text\"/>").colorpicker({});
|
||||
|
||||
// example plugins provided
|
||||
|
||||
$.colorpicker.parts["memory"] = function (inst) {
|
||||
|
||||
Reference in New Issue
Block a user