Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom template #44

Open
lokesh-coder opened this issue Nov 3, 2018 · 7 comments
Open

Custom template #44

lokesh-coder opened this issue Nov 3, 2018 · 7 comments
Labels
enhancement Specific enhancement feature request New feature requested

Comments

@lokesh-coder
Copy link

Hi,

First of all this library is super cool 馃憤

Im wondering is there anyway I can use custom template or modify existing template. I see there is a static method createFromTemplate to create, but however I'm not sure how to use.

When I checked the source for createFromTemplate it seems fixed.

Any thoughts?

@simonwep
Copy link
Owner

simonwep commented Nov 4, 2018

As you said, you can clone it and modify createFromTemplate. It's basically documented here but ask if you have any questions regarding to it.

Unfortunately there's currently no other method to change it except in the source code. Moreover I'd have no idea how to add a reasonable option to modify it. Any idea is welcome 馃槃

@simonwep simonwep added the question Further information is requested label Nov 4, 2018
@lokesh-coder
Copy link
Author

lokesh-coder commented Nov 5, 2018

In my case, the picker should have vertical view. So I acheived this by modifying SCSS and pointer lock properties.

image

Also, I am trying to replicate something like this with a small preview icon,

image

Let me see, if I can make it as a generic solution ( by having additional settings for different view ).

@simonwep
Copy link
Owner

@lokesh-coder Pickr got themes where the one you tried to implement is now available as nano theme, check out the demo :)

@bjarnef
Copy link

bjarnef commented Jun 14, 2019

I also noticed this project which had a Chrome'ish color picker look
https://narsenico.github.io/a-color-picker/
Maybe it would also be possible via a config option, theme or template to choose if the HEXA/RGBA/HSLA values should be splitted into separate input fields or as it is in the current version?

@simonwep
Copy link
Owner

simonwep commented Jun 16, 2019

@bjarnef That's currently not possible, you would need to manipulate the template :( But I like the Borderlines hue-picker, maybe I'll update the nano layout more in this direction :)

Edit, the nano theme is now more... nano :)
alt

@bjarnef
Copy link

bjarnef commented Jun 16, 2019

@simonwep okay, maybe it would be possible in a future version to specify a custom template (from config or a path to e.g. a html view/template) and maybe an option to split the values in separate input fields. Anyway I really like the current version. Keep up the good work 馃憤

Maybe the published theme styles should be moved to a separate folder themes in this folder
https://github.com/Simonwep/pickr/tree/master/dist like in the source folder https://github.com/Simonwep/pickr/tree/master/src/scss/themes ?

@simonwep
Copy link
Owner

@bjarnef Thanks :) Yea I'll work on such a feature since It would allow to create anything out of it.
To your second point, yeah - that's a good idea :D

@simonwep simonwep pinned this issue Jun 20, 2019
@simonwep simonwep changed the title Is it possible to use custom template? Custom template Jun 20, 2019
@simonwep simonwep added enhancement Specific enhancement feature request New feature requested and removed question Further information is requested labels Jun 20, 2019
@NateSeymour NateSeymour unpinned this issue Aug 28, 2019
@NateSeymour NateSeymour pinned this issue Aug 28, 2019
@NateSeymour NateSeymour unpinned this issue Oct 25, 2019
@NateSeymour NateSeymour pinned this issue Oct 25, 2019
@simonwep simonwep unpinned this issue Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Specific enhancement feature request New feature requested
Projects
None yet
Development

No branches or pull requests

3 participants