public static StringBuilder ToStyleString(this IHasTableItemStyle hasStyle, StringBuilder sb)
        {
            ((IHasStyle)hasStyle).ToStyleString(sb);

            if (!hasStyle.Wrap)
            {
                sb.Append("white-space:nowrap;");
            }

            return(sb);
        }
Example #2
0
 public static StyleBuilder ToStyle(this IHasTableItemStyle hasStyle) =>
 ((IHasStyle)hasStyle).ToStyle().AddStyle("white-space", "nowrap", !hasStyle.Wrap);
 public static string ToStyleString(this IHasTableItemStyle hasStyle)
 {
     return(ToStyleString(hasStyle, new StringBuilder()).ToString());
 }