Class: ContactEditor

Apps~ContactEditor

new ContactEditor(app)

Name Type Description
app Apps.Contacts.People

parent object

Members

$editor jQueryObject

$rawContactsList jQueryObject

Type Definitions

Methods

addField(mimetype, rawContactIds)

VIEW Update - adjust input field

Name Type Description
mimetype string
rawContactIds array optional

adjustInput($el, eventType)

VIEW Update - adjust input field

Name Type Description
$el jQueryObject
eventType string

clearValue($field)

Name Type Description
$field jQueryObject

completeUpdate(deleteIds)

Name Type Description
deleteIds array

createData(data)

Name Type Description
data *

deleteContact(ids)

delete contact

Name Type Description
ids array

deleteField($field)

Name Type Description
$field jQueryObject

deleteFieldData(ids)

Name Type Description
ids *

VIEW Event - edit discard (cancel)

VIEW Event - edit start

Name Type Description
id string

getNextSelectboxValue(mimetype){string}

Name Type Description
mimetype string
Returns:
Type Description
string value

inputboxChange($input)

Name Type Description
$input jQueryObject

insertFieldData(datas)

Name Type Description
datas *

isValidate(mimetype, value){boolean}

Validate

Name Type Description
mimetype string
value string
Returns:
Type Description
boolean result
Name Type Description
id string

MODEL update - save state

selectboxChange($input, eventType)

Name Type Description
$input jQueryObject
eventType string

selectboxOpen($input)

VIEW Event - field lavel

Name Type Description
$input jQueryObject

selectboxSelect($item)

Name Type Description
$item jQueryObject

undoDeletedField($field)

Name Type Description
$field jQueryObject

updateFieldData(datas)

Name Type Description
datas *
TODO
  • 메모는 edit안누르고도 바로 수정되게

inner ondatacontactdelete(data)

Name Type Description
data object
Listens to Events:

inner ondatacontactdeletefield(res)

Name Type Description
res object
Listens to Events:

inner ondatacontactinsertfield(res)

Name Type Description
res object
Listens to Events:

inner ondatacontactupdatefield(res)

Name Type Description
res object
Listens to Events:
comments powered by Disqus