It'll add a CSS tag for the font icon on the page. When you use the font of the icon, you can use the simple variety of image only Tag.
<link rel="stylesheet" type="text/css" href="bower_components/font-awesome/css/font-awesome.css">
It will prepare the element that is the target of the Calendar UI in the document.
<div id="calendar-target" style="
width:300px;
border:1px solid #ccc;
border-radius: 5px;
padding: 5px;
overflow: hidden;">
</div>Create an instance of ax5.ui.calendar class, using the setConfig method to an instance, you can set the Calendar UI.
<script type="text/javascript">
$(document.body).ready(function () {
var myCalendar = new ax5.ui.calendar({
target: document.getElementById("calendar-target"),
control: {
left: '<i class="fa fa-chevron-left"></i>',
yearTmpl: '%s',
monthTmpl: '%s',
right: '<i class="fa fa-chevron-right"></i>',
yearFirst: true
},
displayDate: (new Date()),
onClick: function () {
},
onStateChanged: function () {
console.log(this);
}
});
});
</script>
'AX5UI' can be used with Bootstrap theme. The development of the distribution of the various UI plug-in. When you click the link to move to AX5UI index page.
AXBoot makes it easy to build web applications with Java & HTML5 Repeatable and noise development process are resolved by AXBoot.