mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-14 01:00:27 +08:00
Updated Font Awesome HTML Dropdown Select List (markdown)
parent
b8df811963
commit
4df4b690e1
@ -1,3 +1,17 @@
|
|||||||
|
List below is way depracated.
|
||||||
|
In order to manage to display FA V.4 in an HTML Select, you have to use http://silviomoreto.github.io/bootstrap-select/
|
||||||
|
|
||||||
|
This plugin allows you to use data-content attribute to display the icons. Example:
|
||||||
|
`$x = array(
|
||||||
|
'fa-arrows-v' => array('data-content' => "<i class='fa fa-arrows-v'></i>", 'value' => 'fa-arrows-v', 'name' => 'fa-arrows-v'),
|
||||||
|
'fa-beer' => array('data-content' => "<i class='fa fa-beer'></i>", 'value' => 'fa-beer', 'name' => 'fa-beer'),
|
||||||
|
);`
|
||||||
|
|
||||||
|
Populate your select with this array's format.
|
||||||
|
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
```
|
```
|
||||||
<select>
|
<select>
|
||||||
<optgroup label="Web Application Icons">
|
<optgroup label="Web Application Icons">
|
||||||
|
Loading…
Reference in New Issue
Block a user