Forum Discussion
Color Picker without color palette, need to have only conditional formatting button
Hello dm-p ,
We are already using the same enum while creating slices in formatting pane
Please refer the code attached
conditionalColor = new formattingSettings.ColorPicker({
name: "conditionalColor",
displayName: "Color",
value: { value: undefined },
altConstantSelector: null,
instanceKind: powerbi.VisualEnumerationInstanceKinds.Rule,
selector: dataViewWildcard.createDataViewWildcardSelector(dataViewWildcard.DataViewWildcardMatchingOption.InstancesAndTotals)
});Can you please share how to create a support ticket?
- dm-p1 year ago
Super User
That looks correct. I've just tried it myself, and it might be a quirk of how the powerbi-visuals-utils-formattingmodel classes abstract a lot of the work away and handle the rendering of the newer formatting pane components. I confess, the last time I wanted this specific situation was before these utilities were made available, and you had to construct the formatting model using the visual host directly.
I would indeed suggest asking the custom visuals team for an example they can give you. You can contact them at [email protected]
Best of luck (and if you get a workable example, it would be great to know if it's possible!),
Daniel