Skip to content

Set Default ColorPickerType #60

Answered by rydmike
imSaharukh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @imSaharukh, thanks for your question.

The picker will open on the page that has the color you pass to it when you open it. So if you have a box for selecting a color, and you click on it to open the picker, and pass that color it has to the picker when you open it, it will open the picker with the section (picker type) selected where it can first find the color you passed in, including any shade.

So if you passed it a color value that matched e.g. primary Red[200], that will be selected and the Primary picker shown.

If you pass it some custom color that does not exist in Material, Accent or in eg. custom colors you made for the custom tab, then it will always open the wheel and select…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #32 on October 06, 2022 13:13.