nFilter

nFilter

zygimantaszygimantas Posts: 33Questions: 0Answers: 0
edited March 2009 in General
How can we access input element from API plugin? It would be nice to have an extension point to modify input element attributes, like maxlength or add "reset" button using custom plugin. Current situation causes problems when multiple tables are used on the same page.

Replies

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin
    Hi zygimantas,

    At the moment it isn't possible to access the input element through a plug-in - possibly in 1.5 though, depending on how that shapes up. Although it's a while off...

    What I would suggest is to alter the input elements right after the initialisation to have the attributes that you want (that way you can have different attributes on them as you require). An alternative is to do something much like what you have for the delay on the filtering and use a Javascript event handler to provide some kind of validation of the input.

    Regards,
    Allan
This discussion has been closed.