Table of Contents

Class FieldContext

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll
public class FieldContext : ChromeContext
Inheritance
FieldContext
Inherited Members
Extension Methods

Constructors

FieldContext(IServices, IEntity?, Action?, bool, bool, bool, bool, bool)

public FieldContext(IServices services, IEntity? entity, Action? fieldChanged = null, bool isEmbedded = false, bool isLowDensity = false, bool adminMode = false, bool isReadOnly = false, bool isFirstField = false)

Parameters

services IServices
entity IEntity
fieldChanged Action
isEmbedded bool
isLowDensity bool
adminMode bool
isReadOnly bool
isFirstField bool

Properties

IsFirstField

True for the first field rendered in a section. Unlike the other flags this is NOT carried across Derive(bool?, bool?, bool?, IEntity?, bool?, bool); it always resets to false unless explicitly requested .

public bool IsFirstField { get; }

Property Value

bool

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

Row

public IEntity? Row { get; }

Property Value

IEntity

Services

public IServices Services { get; }

Property Value

IServices

Methods

Derive(bool?, bool?, bool?)

Layer chrome modifications while staying a field context (preserves Services, Row and IsReadOnly). IsFirstField is intentionally not preserved - it resets to false.

public override ChromeContext Derive(bool? embedded = null, bool? lowDensity = null, bool? adminMode = null)

Parameters

embedded bool?
lowDensity bool?
adminMode bool?

Returns

ChromeContext

Derive(bool?, bool?, bool?, IEntity?, bool?, bool)

Return a copy of this field context flagged as the first field in its section.

public FieldContext Derive(bool? embedded = null, bool? lowDensity = null, bool? adminMode = null, IEntity? row = null, bool? isReadOnly = null, bool isFirstField = false)

Parameters

embedded bool?
lowDensity bool?
adminMode bool?
row IEntity
isReadOnly bool?
isFirstField bool

Returns

FieldContext

RaiseFieldChanged()

public void RaiseFieldChanged()