Created
January 8, 2014 08:13
-
-
Save metavige/8313450 to your computer and use it in GitHub Desktop.
controller sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([''], function () { | |
'use strict'; | |
return { | |
initialize: function () { | |
// initialize function! | |
}, | |
/** | |
* 初始化要顯示在操作區的 View, Home 首頁 | |
*/ | |
index: "home index view", | |
/** | |
* 設定 Global Action | |
*/ | |
globalAction: [{ | |
id: 'id', | |
disable: false, | |
text: 'text', | |
icon: 'icon', | |
title: 'title', | |
click: function () { | |
// Click Code | |
}, | |
}], | |
// ================================================== | |
// 定義 Dialog | |
// ================================================== | |
dialogs: [{ | |
id: 'id', | |
view: 'viewname', | |
dialogOptions: {} | |
}] | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment