Closed slavap closed 9 years ago
For some reason, I had a mental block on how to do this without introducing a bunch of new variables that didn't need to be there. Turns out, it's because I'm kinda dumb sometimes.
Anyway, it's called calBeforeAppendFunc. The default is a function that simply returns what it is fed. For funsies, you could override this with a non-function and watch the whole thing puke. Other than that, so long as you return something that .appendTo can operate on, it'll work.
Looks good, the only thing may be documentation should be tweaked a little bit to emphasize that input jquery object is actually already constructed div with all classes and styles added and data (date, enabled, month) defined.
aye, and to clean up the grammar so it doesn't read like I was drunk (really, I only just got home - haven't even made a drink yet. heh)
Sometimes complex class/style adjusting is needed for griddate cells. For example additional classes returned by calFormatter may contradict with "default" griddate's classes, so manual resolution is needed. It would be nice to have an ability to preprocess griddate div just before it's added to htmlRow, i.e. in the following code:
call calBeforeGriddateAppend(constructed-div), and only then appendTo( htmlRow );