APIs

Show:

Used to foreign key colums with a model

Constructor

awa.ui.ForeignKeyInput

(
  • options.model
  • options.collection
  • options.modelAttribute
  • [options.subModelAttribute]
  • [options.lookupView]
  • [options.LookupView]
  • [options.selectedModel]
  • [options.allowRemove]
  • [options.postSelect]
)

Parameters:

  • options.model awa.mvc.Model
  • options.collection awa.mvc.Collection
  • options.modelAttribute String

    foreign key attribute of the model to bind to

  • [options.subModelAttribute] String optional

    attribute that contains the linked model in the parent. If supplied, will be set on selection

  • [options.lookupView] awa.view.LookupView optional

    LookupView to use if you do not want it to build from the collection

  • [options.LookupView] Constructor optional

    LookupView constructor to use if you do not want it to build from the collection

  • [options.selectedModel] awa.mvc.Model optional

    Initially selected model

  • [options.allowRemove] Boolean optional

    default true

  • [options.postSelect] Function optional

    {model, success}

Item Index