Class TwResponsiveScale
- Namespace
- TwBlazor.Configuration
- Assembly
- TwBlazor.dll
A numbered utility written out at every breakpoint, keyed by its number: for example grid columns, where key
3 holds grid-cols-3, sm:grid-cols-3 and so on.
public class TwResponsiveScale : Dictionary<int, TwResponsiveClass>, IDictionary<int, TwResponsiveClass>, ICollection<KeyValuePair<int, TwResponsiveClass>>, IDictionary, ICollection, IReadOnlyDictionary<int, TwResponsiveClass>, IReadOnlyCollection<KeyValuePair<int, TwResponsiveClass>>, IEnumerable<KeyValuePair<int, TwResponsiveClass>>, IEnumerable, ISerializable, IDeserializationCallback
- Inheritance
-
TwResponsiveScale
- Implements
- Inherited Members
Constructors
TwResponsiveScale()
public TwResponsiveScale()
Properties
Full
Gets or sets the classes used for Full, such as col-span-full. Leave it empty
for scales that have no "full" step.
public TwResponsiveClass Full { get; set; }
Property Value
Methods
Get(int?, Breakpoint)
Gets the class for a step at a breakpoint.
public string Get(int? step, Breakpoint breakpoint)
Parameters
stepint?breakpointBreakpointThe breakpoint.
Returns
- string
The class, or an empty string when the step is not on the scale.