Class: ContactView

ContactView

ContactView

new ContactView()

modules/tools/contact/view.js, line 20
Listens to Events:

Extends

Methods

recheckValidiy(){Void}

modules/tools/contact/view.js, line 201
render the content and recheck the validity

render(model, value){void}

modules/tools/contact/view.js, line 39
Renders contact tool
Name Type Description
model ContactModel Contact model
value Boolean Flag to show if contact is active

send(){void}

modules/tools/contact/view.js, line 77
Sends email

setMaxHeight(){void}

modules/tools/contact/view.js, line 57
Sets the maximum height. Uses window.offset and the height of the menu and footer

setUserAttributes(evt){void}

modules/tools/contact/view.js, line 69
Sets user attributes by user input
Name Type Description
evt KeyboardEvent Keyup event

showValidity(){void}

modules/tools/contact/view.js, line 85
Shows if the users inputs are valid

toggleSendButton(val){void}

modules/tools/contact/view.js, line 110
Activates or deactivates the send button
Name Type Description
val Boolean Flag if User can send the email. Email can only be sended when all input fields are valid

toggleTextValid(val){void}

modules/tools/contact/view.js, line 184
Shows or hides error messages on userText
Name Type Description
val Boolean Flag if userText input is valid

toggleUserEmailValid(val){void}

modules/tools/contact/view.js, line 144
Shows or hides error messages on userEmail
Name Type Description
val Boolean Flag if userEmail input is valid

toggleUserNameValid(val){void}

modules/tools/contact/view.js, line 124
Shows or hides error messages on userName
Name Type Description
val Boolean Flag if userName input is valid

toggleUserTelValid(val){void}

modules/tools/contact/view.js, line 164
Shows or hides error messages on userTel
Name Type Description
val Boolean Flag if userTel input is valid