Example #1
0
 private static string ValueToClass(this ModalDecorations value)
 {
     return(value switch
     {
         NoDecoration => string.Empty,
         _ => value.ToString().ToLower(),
     });
Example #2
0
        public static string ToClass(this ModalDecorations decorations)
        {
            var classes = _allValues
                          .Select(v =>
            {
                return(decorations.HasFlag(v)
                        ? v.ValueToClass()
                        : string.Empty);
            });

            return(classes.ToClass());
        }