Constructor
new EMLMissingValueCodesView()
- Since:
- Source:
Extends
Members
className :string
The className to add to the view container
Type:
- Source:
classes :Object
The classes to add to the HTML elements in this view
Type:
Properties:
Name |
Type |
Description |
title |
string
|
The class to add to the title element |
description |
string
|
The class to add to the description
paragraph element |
notification |
string
|
The class to add to the validation
message container element |
rows |
string
|
The class to add to the container element for
the missing value code rows |
- Source:
text :Object
User-facing text strings that will be displayed in this view.
Type:
Properties:
Name |
Type |
Description |
title |
string
|
The title text for this view |
description |
Array.<string>
|
The description text for this view.
Each string in the array will be rendered as a separate paragraph. |
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
addNewRow()
Add a new, empty Missing Value Code model to the collection. This will
trigger the creation of a new row in the view.
- Source:
addRow(model) → {EML211MissingValueCodeView}
Creates a new row view for a missing value code model and inserts it
into this view at the end.
Parameters:
- Source:
Returns:
The row view that was created
-
Type
-
EML211MissingValueCodeView
initialize(options)
Creates a new EMLMissingValueCodesView
Parameters:
Name |
Type |
Description |
options |
Object
|
A literal object with options to pass to the
view
Properties
Name |
Type |
Attributes |
Description |
collection |
EMLAttribute
|
<optional>
|
The EMLMissingValueCodes
collection to render in this view |
|
- Source:
modelIsNew(model) → {boolean}
Tests is a model should be considered "new" for the purposes of
displaying it in the view. A "new" model is used to render a blank row
in the view for entry of a new missing value code. We consider it new
if it's the last in the collection and both attributes are blank.
Parameters:
- Source:
Returns:
Whether or not the model is new
-
Type
-
boolean
removeListeners()
Remove listeners that were previously set for this view
- Source:
removeRow(model) → {EML211MissingValueCodeView}
Removes a row view from this view
Parameters:
- Source:
Returns:
The row view that was removed
-
Type
-
EML211MissingValueCodeView
Renders this view
- Source:
Returns:
A reference to this view
-
Type
-
EMLMissingValueCodesView
renderRows()
Renders the rows for each missing value code in the collection, and
adds a new row for entry of a new missing value code.
- Source:
renderText()
Add the title, description, and placeholder for a validation message.
- Source:
setListeners()
Set listeners required for this view
- Source: