Giter Site home page Giter Site logo

Comments (9)

KennethanCeyer avatar KennethanCeyer commented on August 21, 2024 1

Hi @exexzian

I update new version v1.4.13 and that version has click callback option.

You can use as following code.

$('.calendar').pignoseCalendar({
    click: function(event, context) {
        // this is clicked button.
        var $this = $(this);

        // event is general event object.
        console.log('Calendar information', context);
    }
});

from pg-calendar.

exexzian avatar exexzian commented on August 21, 2024

One workaround I see is handling click event on this class pignose-calendar-unit-disabled .

Still just curious if pignose has native feature for this

from pg-calendar.

KennethanCeyer avatar KennethanCeyer commented on August 21, 2024

Hi @exexzian!

Sorry. It's a little late.

In this version, the feature you mentioned does not exist.

I think firing select event on even the disable button will cause confusion.

If you want to receive a response

from the disable button,

We will add the click event to the next version.

Thank you for ashking 👍

from pg-calendar.

exexzian avatar exexzian commented on August 21, 2024

thanks @KennethanCeyer for the response, yup as you mentioned firing event on disabled can confuse but at current that was just my use case.

As of now I will go with click event on pignose-calendar-unit-disabled and in the meantime wait for the next version is on 👍

from pg-calendar.

KennethanCeyer avatar KennethanCeyer commented on August 21, 2024

This issue will be closed tomorrow.

If you have other issues, Please create a new issue 🍺

from pg-calendar.

exexzian avatar exexzian commented on August 21, 2024

@KennethanCeyer thanks for bringing the feature, however can we have look at the different options of click callback ?

from pg-calendar.

KennethanCeyer avatar KennethanCeyer commented on August 21, 2024

hello @exexzian

I am so late...

Sorry about that 😢

I will update whole documents related with #36

Thank you.

from pg-calendar.

KennethanCeyer avatar KennethanCeyer commented on August 21, 2024

Shortly

Click event listen only clicking event at date buttons (like jQuery's click event).

But select event catch date changes and pass the selected date at event parameter.

Thank you 😄

from pg-calendar.

KennethanCeyer avatar KennethanCeyer commented on August 21, 2024

Hi @mamtammak

You can detailed information of click and select event to below link.

Check this document

Thank you.

from pg-calendar.

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.