DataTables logo DataTables

via Ad Packs
Extending KeyTables Plugin
  • naddy19naddy19
    Posts: 8
    Hi,

    I am trying to extend the keytables plugin to make it work a little differently. I am using the method of extending a jQUery plugin as demonstrated by Matt Huggins as shown here https://github.com/mhuggins/jquery-ui-autocomplete-hints/blob/master/jquery.autocomplete.js

    But here i m facing few problems

    1. I am not able to get the keytable as
     $['KeyTable'].prototype 
    instead i have to use
    KeyTable.prototype
    2. I am not able to get all the functions defined by keyTables using
     	
    for (var i in plugin) {
      if (typeof(plugin[i]) === 'function') {
      functions[i] = plugin[i];
      }
    }
    

    instead , i am getting only the constructor of the keytable.

    Anybody please help me extending the keyTable plugin and calling the internal functions from my extended file.
  • allanallan
    Posts: 15,546
    KeyTable is not a jQuery UI plug-in, so following a jQuery UI plug-in probably won't get you very far!

    The functions in KeyTable are private and cannot be overridden externally - so if you want to alter them, you need to just change the source of the file.

    Allan
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion