Class CardInfo.InfoValue
- Namespace
- Dynamicweb.CoreUI.Displays.Widgets
- Assembly
- Dynamicweb.CoreUI.dll
public sealed record CardInfo.InfoValue : IEquatable<CardInfo.InfoValue>
- Inheritance
-
CardInfo.InfoValue
- Implements
- Inherited Members
Constructors
InfoValue(DisplayBase)
public InfoValue(DisplayBase display)
Parameters
displayDisplayBase
InfoValue(EditorBase)
public InfoValue(EditorBase editor)
Parameters
editorEditorBase
InfoValue(bool)
public InfoValue(bool value)
Parameters
valuebool
InfoValue(DateTime?)
public InfoValue(DateTime? dateTime)
Parameters
dateTimeDateTime?
InfoValue(DateTime?, ActionBase?)
public InfoValue(DateTime? dateTime, ActionBase? primaryAction)
Parameters
dateTimeDateTime?primaryActionActionBase
InfoValue(string?)
public InfoValue(string? value)
Parameters
valuestring
InfoValue(string?, ActionBase?)
public InfoValue(string? value, ActionBase? primaryAction)
Parameters
valuestringprimaryActionActionBase
Properties
MaxLines
Gets the number of lines a text value is cut off after, or null to show the whole value.
public int? MaxLines { get; }
Property Value
- int?
PrimaryAction
public ActionBase? PrimaryAction { get; }
Property Value
Value
public object? Value { get; }
Property Value
Methods
Create(object?)
public static CardInfo.InfoValue Create(object? value)
Parameters
valueobject
Returns
WithMaxLines(int)
Cuts a text value off after the given number of lines.
public CardInfo.InfoValue WithMaxLines(int maxLines)
Parameters
maxLinesintThe number of lines to show.
Returns
Exceptions
- ArgumentOutOfRangeException
maxLinesis zero or negative.
Operators
implicit operator InfoValue(DisplayBase)
public static implicit operator CardInfo.InfoValue(DisplayBase input)
Parameters
inputDisplayBase
Returns
implicit operator InfoValue(DateTime?)
public static implicit operator CardInfo.InfoValue(DateTime? input)
Parameters
inputDateTime?
Returns
implicit operator InfoValue(string?)
public static implicit operator CardInfo.InfoValue(string? input)
Parameters
inputstring