前提・実現したいこと
サンプルのToDoリスト(https://github.com/frandiox/OnsenUI-Todo-App)で、
Pending だけではなく Completed pageにもnewTask を投稿できるようにしたいです。
※Completed(完了タスク)としての機能は、必要ないです。
コードのどの部分をいじれば、可能でしょうか?
よろしくお願いします
発生している問題・エラーメッセージ
なし
該当のソースコード
その他のコードは字数制限のため割愛させていただきました
html
1<!DOCTYPE html> 2<html lang="en"> 3<head> 4 <meta charset="UTF-8"> 5 <title>Onsen UI Memo App 2.0</title> 6 7 <script src="lib/onsen/js/onsenui.js"></script> 8 9 <script src="js/app.js"></script> 10 <script src="js/services.js"></script> 11 <script src="js/controllers.js"></script> 12 13 <link rel="stylesheet" href="lib/onsen/css/onsenui.css"> 14 <link rel="stylesheet" href="lib/onsen/css/onsen-css-components.css"> 15 <link rel="stylesheet" href="style.css"> 16 17</head> 18 19<body> 20 21 <!-- First navigation component: Navigator. This will remain always on top of the app. --> 22 <ons-navigator id="myNavigator" page="splitter.html"> 23 </ons-navigator> 24 25 26 <!-- Second navigation component: Splitter. This will disappear if the first component changes its content. --> 27 <template id="splitter.html"> 28 <ons-page> 29 <ons-splitter id="mySplitter"> 30 <ons-splitter-side page="html/menu.html" swipeable width="250px" collapse swipe-target-width="50px"> 31 </ons-splitter-side> 32 <ons-splitter-content page="tabbar.html"> 33 </ons-splitter-content> 34 </ons-splitter> 35 </ons-page> 36 </template> 37 38 <!-- Third navigation component: Tabbar. This will disappear if the first or second components change their content. --> 39 <template id="tabbar.html"> 40 <ons-page id="tabbarPage"> 41 <ons-toolbar> 42 <div class="left"> 43 <!-- Toolbar-button with different icons depending on the platform. --> 44 <ons-toolbar-button component="button/menu"> 45 <ons-icon icon="ion-navicon, material:md-menu" size="32px, material:24px"></ons-icon> 46 </ons-toolbar-button> 47 </div> 48 <div class="center">Todos</div> 49 <div class="right"> 50 <!-- Toolbar-button only visible for iOS/other. --> 51 <ons-if platform="ios other"> 52 <ons-toolbar-button component="button/new-task">New</ons-toolbar-button> 53 </ons-if> 54 </div> 55 </ons-toolbar> 56 57 <!-- Floating Action Button only visible for Android. --> 58 <ons-if platform="android"> 59 <ons-fab position="right bottom" component="button/new-task"> 60 <ons-icon icon="md-edit"></ons-icon> 61 </ons-fab> 62 </ons-if> 63 64 <!-- Auto-positioned Tabbar: top on Android, bottom on iOS/other. --> 65 <ons-tabbar id="myTabbar" position="auto"> 66 <ons-tab page="html/pending_tasks.html" label="Pending" active> 67 </ons-tab> 68 <ons-tab page="html/completed_tasks.html" label="Completed"> 69 </ons-tab> 70 </ons-tabbar> 71 </ons-page> 72 </template> 73 74</body> 75 76</html> 77
試したこと
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー