You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PropertyFieldColorPicker and the PropertyFieldSwatchColorPicker both return CSS-compatible strings, but it would be nice if they could optionally return an object with more details. This was originally requested by sprider (Issue #52).
By default, both property fields would return strings. However, an optional valueAsObject (boolean) property would be added that, when true, would set the targeted property to an IColor (import { IColor } from 'office-ui-fabric-react/lib/utilities/color';) object instead. The selectedColor property could also be specified as either a string or an IColor object.
Category
Desired Behavior
The PropertyFieldColorPicker and the PropertyFieldSwatchColorPicker both return CSS-compatible strings, but it would be nice if they could optionally return an object with more details. This was originally requested by sprider (Issue #52).
By default, both property fields would return strings. However, an optional
valueAsObject
(boolean) property would be added that, when true, would set the targeted property to an IColor (import { IColor } from 'office-ui-fabric-react/lib/utilities/color';
) object instead. TheselectedColor
property could also be specified as either a string or an IColor object.The IColor interface returns:
The text was updated successfully, but these errors were encountered: