Fontawesome dropdown as a nuget package

PLACE FOR BLOG

Fontawesome dropdown as a nuget package

Fontawesome dropdown as a nuget package

marija

I've added a very simple support to have font-awesome icons in Episerver edit-mode dropdown a while ago. Now a co-worked of mine pinged me and said: Why no nuget?!

So, this repo got published to Epi nuget (with the ugliest icon ever).

To use it, add a property with the correct UIHint and a path to file:

[UIHint(AwesomeUiHints.AwesomeDropdown)]
[AwesomeDropdownPath(Path = "three-icons.xml")]
public virtual string ThreeIconsChooser { get; set; }

The format for the file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<resources>
 <string name="fa-glass">&#xf000;</string>
 <string name="fa-music">&#xf001;</string>
 <string name="fa-search">&#xf002;</string>
</resources>

If you have any issues or feature requests, do add them to github.

Copyright: Image taken from font-awesome site

LEAVE A COMMENT