jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
50 lines (45 loc) • 2.02 kB
HTML
<html lang="en">
<head>
<title id='Description'>Custom Element MaskedInput FluidSize</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" />
<meta name="description" content="In this example of Custom Element MaskedInput the wifth and height are set in precentages" />
<link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" />
<link rel="stylesheet" href="../../../styles/demos.css" type="text/css" />
<script type="text/javascript" src="../../../scripts/webcomponents-lite.min.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcore.elements.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxmaskedinput.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../../scripts/demos.js"></script>
<style>
body, html {
width: 100%;
height: 100%;
overflow: hidden;
padding: 3px;
box-sizing: border-box;
margin: 0;
}
</style>
<script>
JQXElements.settings['numericInput'] =
{
width: '50%',
mask: '(###)###-####'
};
</script>
</head>
<body>
<div class="example-description">
Custom element MaskedInput Fluid Size Example. The width of the Custom element MaskedInput in this demo is in Percentages.
</div>
<div id='jqxWidget' style="font-size: 13px; font-family: Verdana;">
<div style='margin-top: 10px;'>
Phone Number
</div>
<jqx-masked-input style='margin-top: 3px;' settings='numericInput'></jqx-masked-input>
</div>
</body>
</html>