<!-- CSS -->
<link rel="stylesheet" href="css/jquery.polymer-form.min.css"/>
<!-- JS -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="js/jquery.polymer-form.min.js"></script>
<input type="text" label="Name" name="name" class="demo-form">
<input type="password" label="Password" name="password" class="demo-form">
$(document).ready(function(){
$(".demo-form").polymerForm();
});
<input type="text" label="BarColor" active-color='#3F51B5' class="demo-form">
<input type="text" label="BarHeight" bar-height='12px' class="demo-form">
<input type="text" label="Origin" origin='left' bar-height='12px' active-color='#FF9800' class="demo-form">
<input type="text" label="LabelColor" label-color="#F44336" bar-height='12px' active-color='#FF9800' class="demo-form">
<input type="text" label="LabelColor" label-color="#F44336" bar-height='12px' active-color='#FF9800' class="demo-form" value="Default Value">
Property name | Meaning |
---|---|
label | Name of label (Default: "Name"). |
base-color | Base color of bar (Default: "#AAAAAA" ). |
active-color | Active color of bar (Default: "#C4141A" ). |
bar-height | Height of bar (Default: 2px). |
label-color | Color of label (Default: "#999999" ). |
origin | Origin of bar animation (Default: "center"). This property can accept "center", "left" and "right". |
margin-top | Margin top of input (Default: 20px). |
margin-bottom | Margin bottom of input (Default: 50px). |
$(document).ready(function(){
$(".demo-form-by-arg").polymerForm({
base_color: "#4CAF50",
active_color: "#8BC34A",
bar_height: "12px"
});
});