brianpkelley / md-color-picker

Angular-Material based color picker
MIT License
254 stars 119 forks source link

Is it possible to create an option for placing the preview on the right? #108

Open andresteyn opened 7 years ago

andresteyn commented 7 years ago

Hi all Firstly l would like to thank all the devs who have worked on this control. It really is awesome.

Secondly, I was wondering if it is / would be possible to have a setting where the preview is on the right.

I have attached to images to explain this.

CURRENTLY capture

REQUESTED requested

AsimoLoveGym commented 7 years ago

You can add some css code to rearrange the view. An easy way to solve this would be: .md-color-picker-preview { order: 2; }

Actually, order with any number >=1 would work here. .md-color-picker-preview is the classname for the icon container.

screen shot 2017-07-21 at 11 08 29 pm

brianpkelley commented 7 years ago

This has been addressed in the refactor. You will be able specify your own templates in the same way angular material does. This will change when I push up the latest work, but for now you can see it here

andresteyn commented 7 years ago

Thanks - will give it a try.

Do I close issue? (I am a bit of a GitHub noob)

brianpkelley commented 7 years ago

I'll close once I commit and do a release. Thanks though!