RecruitmentConfig.Class.js 516 Bytes
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
/**
 * Created by PPMaj on 3/3/2017.
 */
class RecruitmentConfig {
   constructor() {
      this.init()
   }
   init() {
      this.recruitmentConfig = {};
   }
   addEmail() {
      this.recruitmentConfig.object.email.push({
         id : this.recruitmentConfig.object.email.length + 1,
         name : 'New E-mail',
         content : {
            tha : 'ว่าง',
            eng : 'Empty'
         }
      })
   }
   removeEmail(index) {
      this.recruitmentConfig.object.email.splice(index, 1)
   }



}