ListAction

public struct ListAction

A ListAction describing a list and and its items.

  • id

    An optional id for this List

    Declaration

    Swift

    public let id: String?
  • The title of this List

    Declaration

    Swift

    public let title: String
  • The items contained in this List

    Declaration

    Swift

    public let items: [ListItem]
  • Initializes the list action from its elements.

    Declaration

    Swift

    public init(id: String?, title: String, text: String?, items: [ListItem])

    Parameters

    id

    the identifier for this List

    title

    the form title

    items

    the list’s items, at least one item must be of type `.Submit

  • Creates a List action from attributes.

    Attributes are expected include:

    • title a simple string containing the title of the form.

    • items an array of items.

    Declaration

    Swift

    public init?(id: String, attributes: AnyObject?)

    Parameters

    id

    the List id

    attributes

    List attributes