VisualSubmitItem

public struct VisualSubmitItem: VisualItemRepresentable

The associated value of a VisualItem of type .submit.

A Submit button is represented with a style and title. Upon tapping on this button, the VisualAction response is submitted after generating its payload. An extra field with the button id is passed in the payload.

  • id

    The ID representing this button

    Declaration

    Swift

    public let id: String?
  • The title for this Link

    Declaration

    Swift

    public let title: String
  • The subtype of this Submit button

    Declaration

    Swift

    public let subtype: VisualSubmitItemSubtype
  • Create a VisualSubmitItem.

    Declaration

    Swift

    public init(id: String?, title: String, subtype: VisualSubmitItemSubtype? = .plain)

    Parameters

    id

    The ID for the button

    title

    The title for the button

  • Create a VisualSubmitItem from attributes.

    Declaration

    Swift

    public init?(attributes: AnyObject?)

    Parameters

    attributes

    the attributes (title, link)