Table of Contents

Class FieldSpec<T, U, V>

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll
public class FieldSpec<T, U, V> : FieldSpec where T : class, IHasChanges where U : FieldBase<T, V> where V : IEntity?

Type Parameters

T
U
V
Inheritance
FieldSpec<T, U, V>
Derived
Inherited Members

Constructors

FieldSpec(string?, string?, int, int?, bool)

public FieldSpec(string? label, string? helpText = null, int rows = 1, int? maxLength = null, bool isAdminOnly = false)

Parameters

label string
helpText string
rows int
maxLength int?
isAdminOnly bool

Methods

Component<U2>()

public virtual FieldSpec<T, U2, V> Component<U2>() where U2 : FieldBase<T, V>

Returns

FieldSpec<T, U2, V>

Type Parameters

U2

CreateModel(FieldContext, PropertyBinding)

public override FieldModel CreateModel(FieldContext context, PropertyBinding binding)

Parameters

context FieldContext
binding PropertyBinding

Returns

FieldModel

Height(Func<IServices, int>)

public FieldSpec<T, U, V> Height(Func<IServices, int> getRows)

Parameters

getRows Func<IServices, int>

Returns

FieldSpec<T, U, V>

Height(Func<IServices, V, int>)

public FieldSpec<T, U, V> Height(Func<IServices, V, int> getRows)

Parameters

getRows Func<IServices, V, int>

Returns

FieldSpec<T, U, V>

Height(int)

public FieldSpec<T, U, V> Height(int rows)

Parameters

rows int

Returns

FieldSpec<T, U, V>

Height<V2>(Func<IServices, V2, int>)

public FieldSpec<T, U, V> Height<V2>(Func<IServices, V2, int> getRows) where V2 : V

Parameters

getRows Func<IServices, V2, int>

Returns

FieldSpec<T, U, V>

Type Parameters

V2

Hidden()

public FieldSpec<T, U, V> Hidden()

Returns

FieldSpec<T, U, V>

HiddenIf(Func<FieldContext, bool>)

public FieldSpec<T, U, V> HiddenIf(Func<FieldContext, bool> predicate)

Parameters

predicate Func<FieldContext, bool>

Returns

FieldSpec<T, U, V>

HiddenIf(Func<IServices, V, bool>)

public FieldSpec<T, U, V> HiddenIf(Func<IServices, V, bool> predicate)

Parameters

predicate Func<IServices, V, bool>

Returns

FieldSpec<T, U, V>

HiddenIf<V2>(Func<IServices, V2, bool>)

public FieldSpec<T, U, V> HiddenIf<V2>(Func<IServices, V2, bool> predicate) where V2 : V

Parameters

predicate Func<IServices, V2, bool>

Returns

FieldSpec<T, U, V>

Type Parameters

V2

ReadOnly()

public FieldSpec<T, U, V> ReadOnly()

Returns

FieldSpec<T, U, V>

ReadOnlyIf(Func<FieldContext, bool>)

public FieldSpec<T, U, V> ReadOnlyIf(Func<FieldContext, bool> predicate)

Parameters

predicate Func<FieldContext, bool>

Returns

FieldSpec<T, U, V>

ReadOnlyIf(Func<IServices, V, bool>)

public FieldSpec<T, U, V> ReadOnlyIf(Func<IServices, V, bool> predicate)

Parameters

predicate Func<IServices, V, bool>

Returns

FieldSpec<T, U, V>

ReadOnlyIf<V2>(Func<IServices, V2, bool>)

public FieldSpec<T, U, V> ReadOnlyIf<V2>(Func<IServices, V2, bool> predicate) where V2 : V

Parameters

predicate Func<IServices, V2, bool>

Returns

FieldSpec<T, U, V>

Type Parameters

V2

ReadWrite()

public FieldSpec<T, U, V> ReadWrite()

Returns

FieldSpec<T, U, V>

ReadWriteIf(Func<FieldContext, bool>)

public FieldSpec<T, U, V> ReadWriteIf(Func<FieldContext, bool> predicate)

Parameters

predicate Func<FieldContext, bool>

Returns

FieldSpec<T, U, V>

ReadWriteIf(Func<IServices, V, bool>)

public FieldSpec<T, U, V> ReadWriteIf(Func<IServices, V, bool> predicate)

Parameters

predicate Func<IServices, V, bool>

Returns

FieldSpec<T, U, V>

ReadWriteIf<V2>(Func<IServices, V2, bool>)

public FieldSpec<T, U, V> ReadWriteIf<V2>(Func<IServices, V2, bool> predicate) where V2 : V

Parameters

predicate Func<IServices, V2, bool>

Returns

FieldSpec<T, U, V>

Type Parameters

V2

Rename()

public FieldSpec<T, U, V> Rename()

Returns

FieldSpec<T, U, V>

Rename(Func<IServices, string?>)

public FieldSpec<T, U, V> Rename(Func<IServices, string?> getLabel)

Parameters

getLabel Func<IServices, string>

Returns

FieldSpec<T, U, V>

Rename(Func<IServices, V, string?>)

public FieldSpec<T, U, V> Rename(Func<IServices, V, string?> getLabel)

Parameters

getLabel Func<IServices, V, string>

Returns

FieldSpec<T, U, V>

Rename(string?)

public FieldSpec<T, U, V> Rename(string? label)

Parameters

label string

Returns

FieldSpec<T, U, V>

Rename<V2>(Func<IServices, V2, string?>)

public FieldSpec<T, U, V> Rename<V2>(Func<IServices, V2, string?> getLabel) where V2 : V

Parameters

getLabel Func<IServices, V2, string>

Returns

FieldSpec<T, U, V>

Type Parameters

V2

Visible()

public FieldSpec<T, U, V> Visible()

Returns

FieldSpec<T, U, V>

VisibleIf(Func<FieldContext, bool>)

public FieldSpec<T, U, V> VisibleIf(Func<FieldContext, bool> predicate)

Parameters

predicate Func<FieldContext, bool>

Returns

FieldSpec<T, U, V>

VisibleIf(Func<IServices, V, bool>)

public FieldSpec<T, U, V> VisibleIf(Func<IServices, V, bool> predicate)

Parameters

predicate Func<IServices, V, bool>

Returns

FieldSpec<T, U, V>

VisibleIf<V2>(Func<IServices, V2, bool>)

public FieldSpec<T, U, V> VisibleIf<V2>(Func<IServices, V2, bool> predicate) where V2 : V

Parameters

predicate Func<IServices, V2, bool>

Returns

FieldSpec<T, U, V>

Type Parameters

V2

WithHelpText(string)

public FieldSpec WithHelpText(string helpText)

Parameters

helpText string

Returns

FieldSpec

WithParameters(params IFieldParameter[])

public FieldSpec<T, U, V> WithParameters(params IFieldParameter[] parameters)

Parameters

parameters IFieldParameter[]

Returns

FieldSpec<T, U, V>