Coder Social home page Coder Social logo

Comments (6)

PitPik avatar PitPik commented on July 30, 2024

Hi @EltonSouza ,
Yes, ...

renderCallback: function($elm, toggled) {
    $elm.css({'color': $elm.val()});
}

from tinycolorpicker.

EltonSouza avatar EltonSouza commented on July 30, 2024

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.

PitPik avatar PitPik commented on July 30, 2024

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.

EltonSouza avatar EltonSouza commented on July 30, 2024

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.

PitPik avatar PitPik commented on July 30, 2024

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.

EltonSouza avatar EltonSouza commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.