mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-25 21:11:30 +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>
|
||||
<optgroup label="Web Application Icons">
|
||||
|
Loading…
Reference in New Issue
Block a user