A choice in each cell
->select([...]) puts a list of choices in each cell: Open, Closed or By appointment. The key of the choice is saved (open, closed, appointment). The empty choice at the top clears the cell.
Note: Try it
Change Sunday × Afternoon from Closed to By appointment. Click “Show what would be saved”: "afternoon": "appointment" is under sun.
|
Day
|
Morning (9–12)
|
Afternoon (12–5)
|
Evening (5–8)
|
|---|---|---|---|
|
Monday
|
|||
|
Tuesday
|
|||
|
Wednesday
|
|||
|
Thursday
|
|||
|
Friday
|
|||
|
Saturday
|
|||
|
Sunday
|
Leave it empty and press Enter to clear the cells.
One checkbox per row
->checkbox()->exclusivePerRow() allows one checked cell in each row, like a radio button: one person opens the store each day. ->exclusivePerColumn() does the same for columns.
Note: Try it
Monday is Riley. Click Monday × Sam: Sam is checked and Riley is unchecked. Click Sam again to leave Monday with nobody.
|
Day
|
Riley
|
Jordan
|
Sam
|
|---|---|---|---|
|
Monday
|
|||
|
Tuesday
|
|||
|
Wednesday
|
|||
|
Thursday
|
|||
|
Friday
|
|||
|
Saturday
|
|||
|
Sunday
|