Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
So I'd like to have a small section of Summary + Details where each day of the week has different details attached to it that someone COULD click on to expand and view that day's details. I'd also like to be able to have it automagically expand the details for whatever the current day of the week it is on the users's browser. I changed the Element ID on each summary+details component to be something like "0day" and "1day" to represent Sunday, Monday, etc. Then in the masterpage html I added: <script> const dailySpecialElement = document.getElementById(getDay() + "day"); dailySpecialElement.toggleAttribute("open"); </script> But no go. And in fact, for some reason this prevents the details from expanding properly - they display, but on top of the text below, it no longer expands to fit them. Any thoughts from the big brains in the group? |
||||
|
With the Accordion component, this is possible. In case the id of the accordion is "elem_8538c1f", then the code for this would be this: var elm = document.getElementById("elem_8538c1f_button"); |
|