j-FaIconsButton
- it uses
j-FaIcons
Configuration:
default {String}a default color (default:#FFFFFF)align {String}align for j-ColorPicker (default:left)position {String}position for j-ColorPicker (default:top)offsetX {Number}offset-x for j-ColorPicker (default:0)offsetY {Number}offset-y for j-ColorPicker (default:0)disabled {Boolean}can disabled this component (default:false)empty {Boolean}adds an empty icon (default:true)
Use it with <ui-component name="faiconsbutton">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="faicons"></ui-component>
<div class="row">
<div class="col-xs-4">
<ui-component name="faiconsbutton" path="icon"></ui-component>
</div>
</div>
<script>
var icon = 'fa fa-home';
</script>