Hi Retool Community - I am working with a tabbed container that consists of 7 tabs, each labeled for each day of the week. I would like to configure the container so that the view defaults to the tab that corresponds to the day of the week on which the user accesses it (ex. On Tuesday March 15, the default view of the container should be the tab ‘Tuesday’; the following day, it should default to Wednesday, etc.).
I see that the default view code is {{ self.viewKeys[0] }}; I am trying to incorporate getDay since it would refer to the day of week as a number, which I would think could be used to reference the view key but I just can’t figure it out; I am open to alternatives to getDay if a better solution can be recommended. Any solutions you can suggest would be greatly appreciated. Thank you!