Module Editor
Edit Module
File:
chore_schedule.mxs
Path:
modules/chore_schedule.mxs
// The main schedule module. This will act as our homepage and control panel. @chore_schedule : Chore Schedule (Household) // This array will hold the unique IDs (uuids) of every chore task we create. // It should be created on the single instance of this module. var tasks[] // The #home function will be the main view for the chore chart. // It provides a button to assign new tasks and then lists all existing tasks. #home: << 'Weekly Chore Distribution' >> // This button creates a new 'chore_task' record, stores its ID in our 'tasks' array, // and then redirects the user to the #setup function for that new task. < construction_button(➕, #setup, chore_task, tasks) | 'Use this button to assign a new chore to a household member. The task will then appear in the list below.' > << 'This Week\'s Chore List' >> // The foreach handler iterates through every task ID stored in the 'tasks' array // and renders the #preview function for each one. foreach tasks#preview
↩
✅
💾