Skip to Content

Extended Input with custom renderer is losing data binding

I am currently trying to extend the Input element to change and extend some HTML around it (labels and icons). Therefore i am doing something similar to this:

http://jsbin.com/pipacaxuwi/edit?html,css,output

Sadly it seems like by doing so i am also overwriting the data-binding between the model and the view. In the example above you can already see that the "change" event isn't fired regularly. How should i go about changing the html of the Input control while keeping the data binding? Thanks a lot!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 20, 2017 at 07:53 AM

    Hi Tobias

    I suggest that you look at how to build composite custom control tutorial.

    Or I can give you an example if you can tell me what your requirements.

    Thanks

    -D

    Add comment
    10|10000 characters needed characters exceeded