Trying to build a plugin to handle recurring dates
Trying to build a plugin to handle recurring dates
I'm attempting to develop a RRule plugin to handle recurring dates.
I have a jquery plugin named "recurrenceinput" that is one possibility but I can't seem to find the path to implement the Editor plugin.
Do you have an example of a Datatables Editor plugin that uses a jquery plugin?
I also have a second path using a fuelux.js function and rrule.js and an html page to perform the same function but have no idea where to start.
Do you have an example of a Datatables Editor plugin that presents a modal html page?
Can I simply use jQuery to catch clicks on the field and write my own function outside Datatables Editor and can I access the Editor fields from that function?
A while ago I ran into a post on the forum where the author was doing what I want but I can't find it. I remember he was going to submit it to Datatables for consideration.
Do you have any idea what that was?
As a way to try to get started I was going to use the datetime.js plugin that used to be included with the examples but its not there now and I seem to have lost my copy.
Could you send me a copy of datetime.js?
Finally, in the an Editor plugin is it possible to access the values of fields other than the one associated with the current plugin invocation?
Any other idea are most welcome.
Regards,
Jim
Answers
Most of the available plug-ins make use of jQuery in one way or another. The Masked inputs one in particular is a pure jQuery plug-in that used with Editor.
As in a separate modal from the one Editor itself is displaying? No, I don't think I've seen that being used before, although if the layer is done correctly, I don't see a problem with it.
Nope sorry! With more than 40 threads per day in the forum, my memory for individual threads isn't perfect I'm afraid. You'd need to try and find it via the search based on what you can remember.
I'm not aware of any plug-ins that have been removed from the Editor plug-ins page. Can you tell me anything more about this one? There is a built in date time picker in Editor and there are several plug-ins that also do that.
No. Well yes, since you have access to the Editor API (
this.
) but I would strongly recommend against it. Keep in mind that the field values can't all be set at exactly the same time for example - Javascript execution is synchronous. So each one is set at a time in a loop, so unless you are very careful you might try to get a value from a field which hasn't yet been set, which is very hard to track down. I would seriously encourage you not to take that approach.If you need to manipulate one field from another, uses events and callbacks.
Allan