Comments (6)
Hi @EltonSouza ,
Yes, ...
renderCallback: function($elm, toggled) {
$elm.css({'color': $elm.val()});
}
from tinycolorpicker.
but, how do I locked the background of input field to does't chance together?
And, how do I specify a single input field that will be changed?
from tinycolorpicker.
Let's say .special
is the className of the input you want to treat special:
renderCallback: function($elm, toggled) {
$elm.filter('.special').css({
'color': $elm.val(),
'background-color': 'white'
});
}
or
doRender: false,
renderCallback: function($elm, toggled) {
$elm.filter('.special').css({'color': $elm.val()});
}
from tinycolorpicker.
Almost perfect!
The first example is exacly what I need, but I would like to know if is it possible to apply doRender: false only in the elements with the classname .special
?
Thanks!
from tinycolorpicker.
You're welcome ;)
Next time though, please don't open issues on gitHub project if you need help developing something.
Issues are meant for bugs or other issues...
Use stackoverflow or something similar instead.
Thanks and good luck.
from tinycolorpicker.
Ok and I'm so sorry, I didn't know it, anyway thanks for the help, I'll post my issues in the Stack Overflow.
from tinycolorpicker.
Related Issues (20)
- Color picker does not popup in latest jQuery (3.1.0) HOT 4
- Clicking outside picker doesnt close it when called from floated element HOT 4
- Close color picker HOT 8
- Can't change default opacity HOT 2
- Suggestion: Setting z-index when opening colorPicker HOT 1
- Setting the colour programmatically from outside the picker HOT 4
- Getting a tinycolorpickers input value
- Set initial color HOT 6
- Close with escape button HOT 4
- Easy way to keep open at all times?
- Rango 0-255 for alpha values HOT 4
- Support rrggbbaa? HOT 3
- Value with auto-correct? HOT 2
- configure the alpha box to display a grid
- Input Event Listeners don't work
- update npm to lastet
- Add additional classnames?
- jQuery.fn.offset() requires a valid DOM element
- When I click on a different color input while the picker is already open, it sometimes transfers the value. HOT 1
- emptying input value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinycolorpicker.