Standardmäßig wird die Bakehouse Iconfont verwendet.
Generiert eine Icon-Auswahl einer Iconfont für das Settings-Formular.
Das gewählte Icon wird als String in die Settings gespeichert.
Attribute
| Name | Beschreibung | Type | default | required |
|---|---|---|---|---|
| name | Name, unter dem der Wert im {cObj.allSettings} gespeichert wird | string | false | |
| value | Aktueller Wert, der aus {cObj.allSettings} übergeben wird | mixed | false | |
| data-font-json | Datei-Pfad zur von Icomoon erstellten JSON-Datei einer eigenen Iconfont | string | Bakehouse Iconset | false |
| data-font-prefix | Präfix für die Iconfont (Leerzeichen für kein Präfix) | string | bh-font- | false |
Beispiel
html
<bh:form.iconSelect name="icon" value="{cObj.allSettings.icon}" data-font-json="/fileadmin/iconfont/cookis-icons.json" data-font-prefix="cookis-" />
Ausgabe
html
<div class="bhe-form-icon-select" data-font-json="/fileadmin/iconfont/cookis-icons.json" data-font-prefix="cookis-">
<div class="bhe-form-icon-select-top">
<div class="bhe-form-icon-select-icon "></div>
<div class="bhe-form-icon-select-text">
<span>Kein Symbol ausgewählt.</span>
<div class="bhe-form-icon-select-unset bhif-icon bhif-icon-cancel"></div>
</div>
<div class="bhe-form-icon-select-toggler bhif-icon bhif-icon-mediacake"></div>
</div>
<div class="bhe-form-icon-select-matrix"></div>
<input type="text" name="icon" value="" readonly="readonly">
</div>