Class Fields
Implements
Inherited Members
Namespace: Grist4NET.Kiota.Models
Assembly: Grist4NET.Kiota.dll
Syntax
public class Fields : IAdditionalDataHolder, IParsable
Constructors
Fields()
Instantiates a new Fields and sets the default values.
Declaration
public Fields()
Properties
AdditionalData
Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
Declaration
public IDictionary<string, object> AdditionalData { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
Formula
A python formula, e.g.: <code>$A + Table1.lookupOne(B=$B)</code>
Declaration
public string Formula { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsFormula
Use "true" to indicate that the column is a formula column. Use "false" for trigger formula column.
Declaration
public bool? IsFormula { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Label
Column label.
Declaration
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RecalcWhen
A number indicating when the column should be recalculated. <ol start='0'><li>On new records or when any field in recalcDeps changes, it's a 'data-cleaning'.</li><li>Never.</li><li>Calculate on new records and on manual updates to any data field.</li></ol>
Declaration
public int? RecalcWhen { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Type
Column type, by default Any. Ref, RefList and DateTime types requires a postfix, e.g. <code>DateTime:America/New_York</code>, <code>Ref:Users</code>
Declaration
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UntieColIdFromLabel
Use "true" to indicate that the column label should not be used as the column identifier. Use "false" to use the label as the identifier.
Declaration
public bool? UntieColIdFromLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
VisibleCol
For Ref and RefList columns, the colRef of a column to display
Declaration
public int? VisibleCol { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
WidgetOptions
A JSON object with widget options, e.g.: <code>{"choices": ["cat", "dog"], "alignment": "right"}</code>
Declaration
public string WidgetOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
CreateFromDiscriminatorValue(IParseNode)
Creates a new instance of the appropriate class based on discriminator value
Declaration
public static Fields CreateFromDiscriminatorValue(IParseNode parseNode)
Parameters
| Type | Name | Description |
|---|---|---|
| IParseNode | parseNode | The parse node to use to read the discriminator value and create the object |
Returns
| Type | Description |
|---|---|
| Fields | A Fields |
GetFieldDeserializers()
The deserialization information for the current model
Declaration
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
Returns
| Type | Description |
|---|---|
| IDictionary<string, Action<IParseNode>> | A IDictionary<string, Action<IParseNode>> |
Serialize(ISerializationWriter)
Serializes information the current object
Declaration
public virtual void Serialize(ISerializationWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISerializationWriter | writer | Serialization writer to use to serialize this model |