RBManagedFormItemSchema Class Reference

Inherits from NSObject
Declared in RBManagedFormItemSchema.h

Overview

The base schema class for a managed form item.

  identifier

The unique identifier of this schema and the UIView that it will later create. Use this to reference fields. You should assign this if you would like to refer to a field. If you do not assign an identifier one will be assigned automatically. The identifier is also used to reference the specific theme within the parent RBManagedFormView theme.

@property (nonatomic, nonnull) NSString *identifier

Declared In

RBManagedFormItemSchema.h

  groupThemeIdentifier

The identifier of the theme (in the RBManagedFormView theme) to apply to items having this themeIdentifiers e.g. if you have 3 labels that you would like to set the textColor to green give them all the same groupThemeIdentifier

@property (nonatomic, nullable) NSString *groupThemeIdentifier

Declared In

RBManagedFormItemSchema.h

  defaultThemeIdentifier

The identifier of the theme (in the RBManagedFormView theme) to apply to all items of this type. Override this when creating a subclass.

@property (nonatomic, readonly, nonnull) NSString *defaultThemeIdentifier

Declared In

RBManagedFormItemSchema.h

  themeOverrides

Theme values to apply after any other prior theming has been applied.

@property (nonatomic, nullable) NSDictionary<NSString*id> *themeOverrides

Declared In

RBManagedFormItemSchema.h

  hidden

Indicates this is a ‘hidden’ item. The UI for this field will not be displayed nor will any validation occur. If a form field is marked hidden it’s inital value will always be returned when calling the values property on the RBManagedFormView. This is useful for passing values through forms.

@property (nonatomic) BOOL hidden

Declared In

RBManagedFormItemSchema.h

  view

The view that represents this schema. The method createView is called internally to generate the view.

@property (nonatomic, nonnull, readonly) UIView *view

Declared In

RBManagedFormItemSchema.h

– newView

Creates a new item view from the schema details.

- (nonnull UIView *)newView

Return Value

The new item view.

Declared In

RBManagedFormItemSchema.h

+ primaryTypeName

The name of this type of managed form item. This is used for serialisation.

+ (nonnull NSString *)primaryTypeName

Return Value

The managed form item name.

Declared In

RBManagedFormItemSchema.h

+ validTypeNames

An array of the type names that will be matched to this item during serialisation.

+ (nonnull NSArray *)validTypeNames

Return Value

The array of type names.

Declared In

RBManagedFormItemSchema.h

– resetToDefaults

Reset all settings to their default values.

- (void)resetToDefaults

Declared In

RBManagedFormItemSchema.h

– createView

Create a new item view from the schema details. This is called by internally. Never call it directly.

- (nonnull UIView *)createView

Return Value

The new item view.

Declared In

RBManagedFormItemSchema.h