FieldLayout

@objcMembers open class FieldLayout: Layout

Abstract class for a Field-based Layout.

  • Object responsible for measuring the layout of this object.

    Declaration

    Swift

    open var measurer: FieldLayoutMeasurer.Type
  • The target field to layout

    Declaration

    Swift

    public final let field: Field
  • Flag determining if user interaction should be enabled for the corresponding view

    Declaration

    Swift

    open var userInteractionEnabled: Bool
  • Sets the native value of this field from a serialized text value.

    Throws

    BlocklyError: Thrown if the serialized text value could not be converted into the field’s native value.

    Declaration

    Swift

    public func setValue(fromSerializedText text: String) throws
  • Automatically captures a BlocklyEvent.Change for self.field, based on its state before and after running a given closure block. This event is then added to the pending events queue on EventManager.shared.

    Declaration

    Swift

    open func captureChangeEvent(_ closure: () throws -> Void) rethrows