Web Connection Wishlist
HtmlHelpers
Gravatar is a globally recognized avatar based on your email address. HtmlHelpers
  Marcel DESMET
  All
  Aug 30, 2021 @ 01:00pm

Hello,

It would be nice if we could use in the future other fonts besides favicons in your htmlhelpers. I'm currently working on a Bootstrap 5 update using Boostrap 1.5 icons.

I think it can be done easily with

#DEFINE FAST_FORWARD_ICON ""fa fa-fast-forward" 
Etc .. 

Tks Marcel

Gravatar is a globally recognized avatar based on your email address. re: HtmlHelpers
  Rick Strahl
  Marcel DESMET
  Aug 31, 2021 @ 10:28am

It's not quite as simple as that as some controls like the alert control use dynamic icons and the scheme to do that is not generic.

Looks like most of them would work though - except the dynamic ones. Taking a look and see if that makes sense.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: HtmlHelpers
  Marcel DESMET
  Rick Strahl
  Aug 31, 2021 @ 12:00pm

Yes I agree for your alert control #DEFINE make less senses. I probalily forgot I rewrite it compatible with your config object and separate the alert class from the icon ( Bootstrap 5 also have a new light alert class ). I am on a refactoring process on a 20 years old code, starting from scratch and wanted to avoid reusing ( or create new ) rewritten parts.

CASE lcIcon = "warning"   
	lcAlertClass = lcIcon
	lcIcon = [<i class="bi bi-exclamation"></i> &nbsp;]
CASE lcIcon = "info"   
	lcAlertClass = lcIcon
	lcIcon = [<i class="bi bi-info"></i> &nbsp;]
CASE lcIcon = "success" 		
	lcAlertClass = lcIcon
	lcIcon = [<i class="bi bi-check"></i> &nbsp;]
CASE lcIcon = "light"
	lcAlertClass = lcIcon
	lcIcon = "" 			&& No icon 
 

I also add a additional content as found on getbootstrap.com

Tks Marcel

© 1996-2021