dotvvm icon indicating copy to clipboard operation
dotvvm copied to clipboard

Add AddCssClass and AddCssStyle extension methods for ValueOrBinding

Open exyi opened this issue 3 years ago • 0 comments

Some not very nice code has to be used in Fluent UI and BS5 for this, so it would be nice to have this helper.

In order for AddCssClass to work with any html control, not only HtmlGenericControl, generic mechanism for handling property groups from capabilies was introduced

  • see DotvvmCapabilityProperty.FindProperty
  • and see DotvvmBindableObjectHelper.CapabilityCache.cs

the FindProperty can lookup any property from a specified capability. The CapabilityCache makes it reasonably fast specifically for HtmlCapability

exyi avatar Feb 04 '22 10:02 exyi