Inherits from UIView
Declared in TKDataFormEditor.h

Overview

The base editor class used in TKDataForm.

Properties

editor

The control used to edit a property.

@property (nonatomic, strong, readonly, nonnull) UIView *editor

Return Value

The control used to edit a property.

Declared In

TKDataFormEditor.h

enabled

Determines if the editor is enabled.

@property (nonatomic) BOOL enabled

Declared In

TKDataFormEditor.h

feedbackImageView

The validation image view in TKDataFormEditor (read-only).

@property (nonatomic, strong, readonly, nonnull) TKImageView *feedbackImageView

Declared In

TKDataFormEditor.h

feedbackLabel

The validation text label in TKDataFormEditor.

@property (nonatomic, strong, readonly, nonnull) UILabel *feedbackLabel

Declared In

TKDataFormEditor.h

gridLayout

The grid layout used to layout the editor.

@property (nonatomic, strong, readonly, nonnull) TKGridLayout *gridLayout

Declared In

TKDataFormEditor.h

imageView

The image view of the editor (read-only).

@property (nonatomic, strong, readonly, nonnull) TKImageView *imageView

Declared In

TKDataFormEditor.h

isTextEditor

Determines if this editor will edit text.

@property (nonatomic, readonly) BOOL isTextEditor

Declared In

TKDataFormEditor.h

labelPosition

The position of the text label of the editor.

@property (nonatomic) TKDataFormLabelPosition labelPosition

Declared In

TKDataFormEditor.h

owner

The TKDataForm which owns the editor.

@property (nonatomic, weak, null_unspecified) TKDataForm *owner

Declared In

TKDataFormEditor.h

property

The property that is edited by this editor.

@property (nonatomic, strong, nonnull) TKEntityProperty *property

Declared In

TKDataFormEditor.h

selected

The selected state of the editor.

@property (nonatomic, readonly) BOOL selected

Declared In

TKDataFormEditor.h

selectedView

The view shown when the editor is selected.

@property (nonatomic, strong, nullable) TKView *selectedView

Declared In

TKDataFormEditor.h

style

The object responsible for TKDataFormEditor’s styling and customization.

@property (nonatomic, strong, readonly, nonnull) TKDataFormEditorStyle *style

Declared In

TKDataFormEditor.h

textLabel

The text label of the editor (read-only).

@property (nonatomic, strong, readonly, nonnull) TKLabel *textLabel

Declared In

TKDataFormEditor.h

value

The TKDataFormEditor’s value.

@property (nonatomic, nullable) id value

Declared In

TKDataFormEditor.h

Instance Methods

initWithProperty:

Initializes a TKDataFormEditor with an entity property.

- (instancetype __nonnull)initWithProperty:(TKEntityProperty *__nonnull)property

Parameters

property

The entity property used for creating TKDataFormEditor.

Declared In

TKDataFormEditor.h

initWithProperty:owner:

Initializes a TKDataFormEditor with an entity property.

- (instancetype __nonnull)initWithProperty:(TKEntityProperty *__nonnull)property owner:(TKDataForm *__nonnull)owner

Parameters

property

The entity property used for creating TKDataFormEditor.

owner

TKDataForm that will show this editor.

Return Value

TKDataFormEditor instance.

Declared In

TKDataFormEditor.h

loadPropertyValue

Updates the value of the editor when the property value is changed.

- (void)loadPropertyValue

Declared In

TKDataFormEditor.h

update

Updates the visuals of editor.

- (void)update

Declared In

TKDataFormEditor.h

updateControlValue

Updates the content of the editor when its value is changed.

- (void)updateControlValue

Declared In

TKDataFormEditor.h