Another font for icons
landsman opened this issue · comments
Michal Landsman commented
Hi,
i am tring change font of icon by class, but not working:
<script type="text/javascript" src="../system/vendor/nette/forms/src/assets/live-form-validation.js">
<script type="text/javascript">
LiveForm.setOptions({
messageErrorPrefix: ' <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> '
});
</script>
Is right?
Thanks
Robert Pösel commented
Hi,
I think that should work. What's the real result? Some error or it uses original prefix? Or...?
Michal Landsman commented
Yea, it show original Options, without change.
Robert Pösel commented
I tried it in my test project and it works correctly. Are you sure you have most recent version? Download e.g. from https://github.com/Robyer/nette-live-form-validation/archive/v1.6.1.zip
Michal Landsman commented
Thanks, i was have 1.5.x version. Now it works.