Example #1
0
	//	util.setViewRect(row.wbvValue, 0, 0, '100%', 250);
		row.add(row.wbvValue);
		return row;
	}();

	win.tvrComment = [];
	
	win.tvBoard.setData([win.tvrGroup, win.tvrTitle, win.tvrUpdateDate, win.tvrBody], {
		animationStyle : Titanium.UI.iPhone.RowAnimationStyle.FADE
	});
		
	// --- Layout ---
	util.setViewRect(win.tvBoard, 0, 0, '100%', 'auto');
	
	// --- Add Component ---
	win.add(win.tvBoard);
	
	// === Logics ====================
	// -- Methods ---
	this.update = function(groupId, boardId) { self.updateBoardDetail(groupId, boardId); };

	// -- Events From User ---
	win.addEventListener('open', function(e) { self.winOpen(e); });

	// --- Events From Model ---
	
	
};
module.exports = util.inherit(boardDetailWindow, require('ui/baseWindow'));
util.expandFnc(boardDetailWindow, logics);
Example #2
0
	win.tvCabinet = Ti.UI.createTableView(styles.tvCabinet);
	win.tvCabinet.search = function(){
		var search = Titanium.UI.createSearchBar({
			barColor:'#385292',
			showCancel:false,
			hintText:'search'
		});
		search.addEventListener('change', function(e) { e.value; });
		search.addEventListener('return', function(e) { search.blur(); });
		search.addEventListener('cancel', function(e) { search.blur(); });
		return search;
	}();
	
	// --- Layout ---
	util.setViewRect(win.tvCabinet, 0, 0, '100%', '100%');
	
	// --- Add ---
	win.add(win.tvCabinet);
	
	// === Logics ====================
	// -- Events From User ---
	win.addEventListener('open', function(e) { self.winOpen(); });
	win.tvCabinet.addEventListener('click', function(e) { self.listClick(e); });

	// --- Events From Model ---
	model.cabinet.addEventListener('updateCabinet', function(e) { self.updateCabinetList(e); });
	
};
module.exports = util.inherit(cabinetListWindow, require('ui/baseWindow'));
util.expandFnc(cabinetListWindow, logics);