src/main/scala/com/ccm/me/playground/bindingscala/loancalculator/ui.scala
Function renderContent
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@dom def renderContent = {
def handleChange[T: ClassTag](i: HTMLInputElement, to: Var[T]) = {
try{
to match {
case aDouble: Var[Double @unchecked] if classTag[T] == classTag[Double] ⇒ aDouble.value = i.value.toDouble