MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / setColor

Function setColor

web/pgadmin/static/js/helpers/withColorPicker.js:38–40  ·  view source on GitHub ↗
(newVal, silent)

Source from the content-addressed store, hash-verified

36 onSaveRef.current = onSave;
37
38 const setColor = (newVal, silent) => {
39 pickrObj.current?.setColor((_.isUndefined(newVal) || newVal == '') ? pickrOptions.defaultColor : newVal, silent);
40 };
41
42 const destroyPickr = () => {
43 if (pickrObj.current) {

Callers 2

initPickrFunction · 0.85
HOCComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected