Coder Social home page Coder Social logo

Support hover event about jquery-selectric HOT 6 CLOSED

lcdsantos avatar lcdsantos commented on June 14, 2024
Support hover event

from jquery-selectric.

Comments (6)

lcdsantos avatar lcdsantos commented on June 14, 2024

Did you mean open the options box on mouse hover?

from jquery-selectric.

kokujin avatar kokujin commented on June 14, 2024

Mouse hover, or hover using arrow keys

On Wed, Sep 24, 2014 at 3:07 PM, Leonardo Santos [email protected]
wrote:

Did you mean open the options box on mouse hover?


Reply to this email directly or view it on GitHub
#50 (comment)
.

from jquery-selectric.

lcdsantos avatar lcdsantos commented on June 14, 2024

Set openOnHover option to true.

from jquery-selectric.

kokujin avatar kokujin commented on June 14, 2024

I saw that. Thats not what I would need, I would like to add my own
callback or function and not just open the list on hover

On Wed, Sep 24, 2014 at 3:13 PM, Leonardo Santos [email protected]
wrote:

Set openOnHover option to true.


Reply to this email directly or view it on GitHub
#50 (comment)
.

from jquery-selectric.

lcdsantos avatar lcdsantos commented on June 14, 2024

Get it now, try using like this:

$('select').selectric({
    onInit: function(element, data){
        $(element).closest('.' + data.classes.wrapper).hover(function(){
            console.log('mouse in');
        }, function(){
            console.log('mouse out');
        });
    }
});

from jquery-selectric.

kokujin avatar kokujin commented on June 14, 2024

Great! I'll try that out. Thanks.

One last question, is it possible to allow selectric to transform a UL list
, without creating new markup?

On Wed, Sep 24, 2014 at 3:26 PM, Leonardo Santos [email protected]
wrote:

Get it now, try using like this:

$('select').selectric({
onInit: function(element, data){
$(element).closest('.' + data.classes.wrapper).hover(function(){
console.log('mouse in');
}, function(){
console.log('mouse out');
});
}});


Reply to this email directly or view it on GitHub
#50 (comment)
.

from jquery-selectric.

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.