Perhaps I am missing something. It appears to me that an option to provide a button or chevron to the Accordion widget should be available in BootStrap Studio. From what I am reading in StackOverflow, this can be accomplished via JQuery or even CSS.
The header is the link which expands or collapses the Accordion Item Content. For certain users, this may not be so obvious. Like I said earlier though, perhaps I am completely missing an Option in BSS?
I do realize that there are also several other BSS users who have provided "online" versions that can be downloaded. But I still feel this should be part of the BSS product. I have tried them all and the chevrons do not change based on collapse or expanded state of the component.
I found that adding a sentence above the Accordion that says something like "Click titles to open sections" etc. works just fine. For me I'd like to see a click anywhere on the bar to open an accordion rather than just a button though. I haven't tried stretching the link area which I may experiment with that as well.
Would be nice to have these as settings for accordions though without having to manually do it all yourself, I do agree there.
That is odd! Have you ever tried jsfiddle.net? On jsfiddle you can post HTML, CSS, JS, test results, and share the link with other struggling developers like me ;-)
And BTW, thank you for the help with the Collapse code. It works great! I am surprised though that it is not part of the Accordion or Collapse component that BSS supplies.
Ben
Ignore this code... I too am trying to add a span to this comment to see what happens...Oddly it appears for me but perhaps because I posted it inside a paragraph tag?
<p>Add the <span>basil</span>, <span>pine nuts</span> and <span>garlic</span> to a blender and blend into a paste.</p>
In relation to the Accordion/Collapse component, I especially like Lowes.com's version that contains an Icon, Header, and a +/-. You can click anywhere on the control to expand or collapse.
Well herein lies the issue, the Accordion is all locked so you can't rearrange the link, and actually the headings aren't links at all so we cannot stretch them either :/ so it looks like it will have to be a CSS thing unless we get this unlocked :/
You can add stretched-link and text-decoration-none as classes to the button. I would add the class "accordion" to the main div wrapper that has the id accordion-1 also to set style for accordion correctly.
I'm not going to bother uploading a custom component since this is easy-peasy. Just note that once you add this CSS, you will no longer be able to click on the accordion text itself to make the "show" "hide" buttons appear in the UI above the website panel. You will have to click on the the Accordion Item in the Overview tree for those buttons to appear.
I've uploaded the version of this accordion used here...
http://bustosmartialartsofholbrook.com/#anchor-1
You can find it in the online library by searching "animated icon accordion." It would be nice if the Online search allowed you to search by user, so you could see all the components uploaded by a particular person. Maybe I should add my forum name to all my uploaded components, so people can just search "Printninja" and they'd all show up. Gotta think about that.
Anyway, use at your own risk. I did a lot of funky positioning things to make this work. You can only open the items by clicking on them in the Tree. The text changes size based on viewport width, so you might want to adjust that in the CSS for your own needs. Also, it's setup for a dark background, so using it on white will necessitate more CSS edits. This franken-accordion was something I created because a client had a web designer create a new home page for them in Photoshop, and this is what they wanted the accordion to look like, so I was challenged with making it work using the Bootstrap Accordion component, thus it's probably not the prettiest CSS you'll ever see, but it got the job done. Hope this helps someone out.