PreviewableTextEditorAttribute Class

Attribute used on a Class Model or a Property ( of a complex object ) to specify how to generate a preview text string, to be applied to the previewable text editor in the JsonConfEditor.

Definition

Namespace: MFiles.VAF.Configuration
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public class PreviewableTextEditorAttribute : JsonConfEditorAttribute
Inheritance
Object    Attribute    JsonConfEditorAttribute    PreviewableTextEditorAttribute

Constructors

PreviewableTextEditorAttribute Default Constructor, explicitly sets the TypeEditor property.

Properties

ChildName The generic name for the children of this type. If not specified, the un-namespaced child type editor name is used. Controls the default label for children (e.g. "{ChildName} [1]") and the add new button (e.g. "Add new {ChildName}").
(Inherited from JsonConfEditorAttribute)
ChildTypeEditor The name of the default/custom type editor that should be used for this value's children. If this value is set, and TypeEditor isn't, the "array" will be assumed as the TypeEditor.
(Inherited from JsonConfEditorAttribute)
ClearOnCopy When true, the value of this field is clear when creating a copying of the item in the editor.
(Inherited from JsonConfEditorAttribute)
Commentable Indicates whether the item can be commented.
(Inherited from JsonConfEditorAttribute)
DefaultValue The default value for this type/member. Only works for simple values.
(Inherited from JsonConfEditorAttribute)
DocReference A short text for the member or type so users understand it's purpose, how/when to use it, etc... May be displayed as a tool tip or in other context specific places.
(Inherited from JsonConfEditorAttribute)
ExtendsEditor The name of the type editor that should be extended for this value.
(Inherited from JsonConfEditorAttribute)
ForceChildLeafBehavior If set to true, forces the child items of an array in the configurators navigation tree (not the grid) to be rendered as a leaf node, preventing their children from being shown in the tree. This option has no effect on an item that would already classify as a leaf.
(Inherited from JsonConfEditorAttribute)
ForceLeafBehavior If set to true, forces an item in the configurators navigation tree (not the grid) to be rendered as a leaf node, preventing the items children from being shown in the tree. This option has no effect on an item that would already classify as a leaf.
(Inherited from JsonConfEditorAttribute)
HelpText A short text for the member or type so users understand it's purpose, how/when to use it, etc... May be displayed as a tool tip or in other context specific places.
(Inherited from JsonConfEditorAttribute)
HelpTextResourceId Same as the help text but a localizable resource id instead of hard coded text. Both can be specified but the resource based text is used in the first place.
(Inherited from JsonConfEditorAttribute)
Hidden Used to prevent a value/key from appearing in the editor. If specified on an object (complex type), none of it's children will be visible.
(Inherited from JsonConfEditorAttribute)
HideWhen Visibility condition. Via JSPath. When true, the value is hidden in the Editor. Example: HideWhen = ".SiblingProperty == 'Test' " HideWhen = ".SiblingProperty{.NestedProperty == 'Test'} "
(Inherited from JsonConfEditorAttribute)
IsRequired Validation option. If this is set to true, and no value is specified, a validation message will be shown to the user.
(Inherited from JsonConfEditorAttribute)
Label The human readable name to show for this value. If not specified, the member or type name will be shown.
(Inherited from JsonConfEditorAttribute)
LoadDepth Provides an override depth value to be used in child item generation. Presently, the editor defaults to a default depth of a single level in preview text loading. This property allows specifying a depth.
NameMember The member whose value can be used as a unique name for an instance of the type. Useful when displaying objects in a list (array).
(Inherited from JsonConfEditorAttribute)
Options Additional options to pass to the editor. Specified in json.
(Inherited from JsonConfEditorAttribute)
PreviewSources Each item in the string array will be a JSPath query string from the current item to the item for which the display value should be resolved. When both the PreviewTemplate and the PreviewSources are provided, a preview text string may be generated. This will not be applied to items that have no value. Used in combination with PreviewTemplate like, String.Format( PreviewTemplate, PreviewSources ).
PreviewTemplate When both the PreviewTemplate and the PreviewSources are provided, a preview text string may be generated. This will not be applied to items that have no value. Used in combination with PreviewSources[] like, String.Format( PreviewTemplate, PreviewSources ).
PreviewUnsetTexts The string values to use in the template inplace of an unset or undefined source value. By default unset values are shown as "(unset)" or by showing the default value appened with "(default)". Items in this array shall match the sources list, first value is used with the first source, and so forth. If an entry in this array is null, the default functionality is applied with corresponding source.
PreviewValueFormats The string values to preformat the values of the sources. By default all values are used directly, but with these format strings additional content can be added for values which are set. Items in this array shall match the sources list, first value is used with the first source, and so forth. If an entry in this array is null, the default functionality is applied with the corresponding source. Values must include "{0}" or the actual source value is lost.
RegExMask When provided, the regular expression mask will be enforced as a validation requirement.
(Inherited from JsonConfEditorAttribute)
ResourceIdPrefix Prefix that can be pre-pended to resource id strings in localizable string properties.
(Inherited from JsonConfEditorAttribute)
ShowWhen Visibility condition. Via JSPath. When true, the value is shown in the Editor. Example: ShowWhen = ".SiblingProperty == 'Test' " ShowWhen = ".SiblingProperty{.NestedProperty == 'Test'} "
(Inherited from JsonConfEditorAttribute)
TypeEditor The name of the default/custom type editor that should be used for this value. If not specified the system will choose the editor based on the type, and may generate an editor dynamically.
(Inherited from JsonConfEditorAttribute)
UseNonPublicMembers
(Inherited from JsonConfEditorAttribute)
UsesAdapter Used in conjunction with an editor that is tagged as "IsAdapter = True". Members where the UsesAdapter = True / The items editor has IsAdapter = True are piped through the adapter for updates.
(Inherited from JsonConfEditorAttribute)
ValueMember If a simple value can be directly cast to this type, this is the member of the type that the value will be set to.
(Inherited from JsonConfEditorAttribute)

Methods

GetOptions Gets the custom options defined by this attribute.
(Overrides JsonConfEditorAttributeGetOptions)
HasOptions Determines if this attribute defines custom options.
(Overrides JsonConfEditorAttributeHasOptions)

See Also