作成日: 2016/12/16 最終更新日: 2016/12/16
文書種別
使用方法
詳細
InputコントロールのhostElementプロパティからkeydownイベントを設定してください。
◎サンプルコード(View)
◎サンプルコード(View)
<script type="text/javascript">
var mask;
c1.mvc.Utils.documentReady(function () {
mask = wijmo.Control.getControl('#mask1');
mask.hostElement.addEventListener("keydown", function (e) {
if (e.key == "Enter") {
alert("Enter key pressed");
}
});
});
</script>
@Html.C1().InputMask().Id("mask1").Mask("000-00-0000").HtmlAttributes(new { title = "Mask: 000-00-0000" })
var mask;
c1.mvc.Utils.documentReady(function () {
mask = wijmo.Control.getControl('#mask1');
mask.hostElement.addEventListener("keydown", function (e) {
if (e.key == "Enter") {
alert("Enter key pressed");
}
});
});
</script>
@Html.C1().InputMask().Id("mask1").Mask("000-00-0000").HtmlAttributes(new { title = "Mask: 000-00-0000" })
旧文書番号
81914