Class: EMLMethodsView

EMLMethodsView()

The EMLMethods renders the content of an EMLMethods model

Constructor

new EMLMethodsView()

Source:

Extends

  • Backbone.View

Members

customMethodsSelector :string

jQuery selector for the element that contains the Custom Methods
Type:
  • string
Source:

parentEMLView :EML211View

A reference to the EML211View that contains this EMLMethodsView.
Type:
  • EML211View
Source:

stepTemplate :UnderscoreTemplate

A small template to display each EMLMethodStep. If you are going to extend this template for a theme, note that: This template must keep the ".step-container" wrapper class. This template must keep the textarea with the default data attributes. The remove button must have a "remove" class
Type:
  • UnderscoreTemplate
Source:

Methods

removeMethodStep(e)

Remove this method step
Parameters:
Name Type Description
e Event
Source:

renderCustomMethods()

Renders the inputs for the custom EML Methods that are configured in the AppConfig If none are configured, nothing will be shown.
Since:
  • 2.19.0
Source:

renderMethodStep(stepopt)

Renders a single EMLMethodStep model
Parameters:
Name Type Attributes Description
step EMLMethodStep <optional>
Since:
  • 2.19.0
Source:

renderNewMethodStep()

Renders a new empty method step input. Does not update the model at all.
Source:

showValidation()

Shows validation errors that need to be fixed by the user
Source:

updateMethodStepNums()

Updates the step number in the view for each step
Since:
  • 2.19.0
Source: