nFilter
nFilter
zygimantas
Posts: 33Questions: 0Answers: 0
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.
This discussion has been closed.
Replies
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