如何设置 tabindex 属性
How to set tabindex attribute
使用Binding.scala时,无法写入使用tabindex属性的html。
这是 Binding.scala / scala.js 中的错误吗?
<div>
<input tabindex="1"></input>
<input tabindex="3"></input>
<br></br>
<input tabindex="2"></input>
<input tabindex="4"></input>
</div>
编译错误结果:
ScalaFiddle.scala:12: error: value tabindex is not a member of scalajs.this.dom.html.Input
ScalaFiddle.scala:13: error: value tabindex is not a member of scalajs.this.dom.html.Input
ScalaFiddle.scala:15: error: value tabindex is not a member of scalajs.this.dom.html.Input
ScalaFiddle.scala:16: error: value tabindex is not a member of scalajs.this.dom.html.Input
我尝试使用属性(或 属性?)tabIndex,但它不是字符串,属性参数必须是字符串。
例如看这个:https://scalafiddle.io/sf/kDg2uAA/0
我是 scala、sbt 和 scala.js 的新手,所以我不确定where/how 解决这个问题以及如何在创建 pullrequest 之前在本地测试修复。
您需要使用 data:tabindex 属性。请参阅 https://scalafiddle.io/sf/TlcSdfF/1
您可以使用包含在 {}
中的值的 tabIndex
属性(提示:您可以在其中使用任何 scala 代码!)。
<div>
<input tabIndex={1}></input>
<input tabIndex={3}></input>
<br></br>
<input tabIndex={2}></input>
<input tabIndex={4}></input>
</div>
请在此处查看完整代码:https://scalafiddle.io/sf/hGkAVib/1
使用Binding.scala时,无法写入使用tabindex属性的html。 这是 Binding.scala / scala.js 中的错误吗?
<div>
<input tabindex="1"></input>
<input tabindex="3"></input>
<br></br>
<input tabindex="2"></input>
<input tabindex="4"></input>
</div>
编译错误结果:
ScalaFiddle.scala:12: error: value tabindex is not a member of scalajs.this.dom.html.Input
ScalaFiddle.scala:13: error: value tabindex is not a member of scalajs.this.dom.html.Input
ScalaFiddle.scala:15: error: value tabindex is not a member of scalajs.this.dom.html.Input
ScalaFiddle.scala:16: error: value tabindex is not a member of scalajs.this.dom.html.Input
我尝试使用属性(或 属性?)tabIndex,但它不是字符串,属性参数必须是字符串。
例如看这个:https://scalafiddle.io/sf/kDg2uAA/0
我是 scala、sbt 和 scala.js 的新手,所以我不确定where/how 解决这个问题以及如何在创建 pullrequest 之前在本地测试修复。
您需要使用 data:tabindex 属性。请参阅 https://scalafiddle.io/sf/TlcSdfF/1
您可以使用包含在 {}
中的值的 tabIndex
属性(提示:您可以在其中使用任何 scala 代码!)。
<div>
<input tabIndex={1}></input>
<input tabIndex={3}></input>
<br></br>
<input tabIndex={2}></input>
<input tabIndex={4}></input>
</div>
请在此处查看完整代码:https://scalafiddle.io/sf/hGkAVib/1