Skip to content

'callback' parameter added#4

Open
mhkoca wants to merge 1 commit into
crossxcell99:masterfrom
mhkoca:master
Open

'callback' parameter added#4
mhkoca wants to merge 1 commit into
crossxcell99:masterfrom
mhkoca:master

Conversation

@mhkoca

@mhkoca mhkoca commented Jan 27, 2021

Copy link
Copy Markdown

I use AngularJS and when I use this picker, HTML element value changes but the scope doesn't effect. So I added callback parameter and send a function which set scope's value with this parameter.

Maybe other people would need this function.

@Stefanius67

Copy link
Copy Markdown

It might be better to pass the callback function with the configuration instead of a new additional parameter.
(ensures backward compatibility; Users that don't need the callback, havn't to worry about the parameter ...)

    oDate = new dtsel.DTS('input[name="dtStartEvent"]',  {
        showTime: true,
        dateFormat: "dd.mm.yyyy",
        funcCallback: function(value) { /* do something with the value */ }
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants