locked
Setting the css class through binding

    Question

  • Is it possible to set the css class using Template and binding ?
    Wednesday, October 5, 2011 7:22 AM

Answers

  • I found it, just me being quite bad at Javascript :

    <div data-win-bind="className : categoryClass">...</div>

    Wednesday, October 5, 2011 12:03 PM

All replies

  • I found it, just me being quite bad at Javascript :

    <div data-win-bind="className : categoryClass">...</div>

    Wednesday, October 5, 2011 12:03 PM
  • Other question would be, could you bind to append a class instead of just replacing?

    <div class="firstClass" data-win-bind="className : bindSecondClass">...</div>

    Friday, January 27, 2012 8:41 PM
  • good question. I'd like to do that too
    Friday, August 31, 2012 3:05 PM