Table of Contents

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

TwResponsiveClass

Methods

Get(int?, Breakpoint)

Gets the class for a step at a breakpoint.

public string Get(int? step, Breakpoint breakpoint)

Parameters

step int?

The step, or Full. Nothing is returned when it is null.

breakpoint Breakpoint

The breakpoint.

Returns

string

The class, or an empty string when the step is not on the scale.