Can i bind input type?

35 views
Skip to first unread message

женя лавицкий

unread,
Jul 21, 2016, 8:52:52 AM7/21/16
to KnockoutJS
can i specify input typefrom variable using data-binding?

Michael Best

unread,
Jul 21, 2016, 1:33:00 PM7/21/16
to KnockoutJS

Gunnar Liljas

unread,
Jul 21, 2016, 8:31:53 PM7/21/16
to knock...@googlegroups.com
I don't think was what was asked. Yes, you theoretically change the type of an input by using an observable, but browsers may behave badly if you do. It's much better to use different templates for different inputs.

--
You received this message because you are subscribed to the Google Groups "KnockoutJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knockoutjs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages