Table of Contents

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

display DisplayBase

InfoValue(EditorBase)

public InfoValue(EditorBase editor)

Parameters

editor EditorBase

InfoValue(bool)

public InfoValue(bool value)

Parameters

value bool

InfoValue(DateTime?)

public InfoValue(DateTime? dateTime)

Parameters

dateTime DateTime?

InfoValue(DateTime?, ActionBase?)

public InfoValue(DateTime? dateTime, ActionBase? primaryAction)

Parameters

dateTime DateTime?
primaryAction ActionBase

InfoValue(string?)

public InfoValue(string? value)

Parameters

value string

InfoValue(string?, ActionBase?)

public InfoValue(string? value, ActionBase? primaryAction)

Parameters

value string
primaryAction ActionBase

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

ActionBase

Value

public object? Value { get; }

Property Value

object

Methods

Create(object?)

public static CardInfo.InfoValue Create(object? value)

Parameters

value object

Returns

CardInfo.InfoValue

WithMaxLines(int)

Cuts a text value off after the given number of lines.

public CardInfo.InfoValue WithMaxLines(int maxLines)

Parameters

maxLines int

The number of lines to show.

Returns

CardInfo.InfoValue

This value, for chaining.

Exceptions

ArgumentOutOfRangeException

maxLines is zero or negative.

Operators

implicit operator InfoValue(DisplayBase)

public static implicit operator CardInfo.InfoValue(DisplayBase input)

Parameters

input DisplayBase

Returns

CardInfo.InfoValue

implicit operator InfoValue(DateTime?)

public static implicit operator CardInfo.InfoValue(DateTime? input)

Parameters

input DateTime?

Returns

CardInfo.InfoValue

implicit operator InfoValue(string?)

public static implicit operator CardInfo.InfoValue(string? input)

Parameters

input string

Returns

CardInfo.InfoValue
To top