-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom icon classes #29
Comments
If anyone is interested, right now I'm "aliasing" FA icons to glyphicons: span.glyphicon.glyphicon-triangle-bottom:before {
content: "\f150";
font-family: FontAwesome;
}
span.glyphicon.glyphicon-triangle-top:before {
content: "\f151";
font-family: FontAwesome;
}
span.glyphicon.glyphicon-check:before {
content: "\f046";
font-family: FontAwesome;
}
span.glyphicon.glyphicon-unchecked:before {
content: "\f096";
font-family: FontAwesome;
}
span.glyphicon.glyphicon-chevron-left:before {
content: "\f053";
font-family: FontAwesome;
}
span.glyphicon.glyphicon-chevron-right:before {
content: "\f054";
font-family: FontAwesome;
}
span.glyphicon.glyphicon-menu-left:before {
content: "\f060";
font-family: FontAwesome;
}
span.glyphicon.glyphicon-menu-right:before {
content: "\f061";
font-family: FontAwesome;
} You can get the "content" unicode for the icons here. |
@zavan you can extend |
@listepo, @onechiporenko, @zavan I edited this module to Pure.css and FontAwesome |
{{models-table data=data columns=columns customIcons=customIcons}} customIcons: customIcons = {
'sort-asc': 'class-sort-asc',
'sort-desc': 'class-sort-desc',
'column-visible': 'class-column-visible',
'column-hidden': 'class-column-hidden',
'nav-first': 'class-nav-first',
'nav-prev': 'class-nav-prev',
'nav-next': 'class-nav-next',
'nav-last': 'class-nav-last'
}; |
I'd like to use FontAwesome instead of Glyphicons to provide the icons, but this is not possible since icon classes are writen directly in the component template. I suggest we should be able to do something like:
But of course, keeping Glyphicons as the default.
The text was updated successfully, but these errors were encountered: