Accordion Functionality

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4129
Joined: Sun Jan 07, 2007 9:12 pm

Re: Accordion Functionality

Post by bn » Tue Nov 26, 2024 3:11 pm

strongbow wrote:
Mon Nov 25, 2024 9:56 pm
Since you asked about other functionality...:
1. perhaps it'd be nice to be able to expand more than one segment at a time?
2. Could it perhaps deal with any sort of grouped objects as an accordion segment? e.g. if you wanted to place fields + buttons + other controls into one of the groups to show/hide as desired?
Hi Alan,
When I looked at your link I thought that it is a neat way to present information in a space saving way: you open one and the others are closed.
That way the vertical space you need is minimised. That was my main reason to replicate the behaviour.
If you can open more than one segment it becomes hard to know where the the accordion ends.

To display different sets of controls in a segment I think the user would be more familiar with the tab-panel control. Easy to hide and show groups of controls for each tab. An accordion is more for information than switching interface elements.

Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9787
Joined: Fri Feb 19, 2010 10:17 am

Re: Accordion Functionality

Post by richmond62 » Tue Nov 26, 2024 4:20 pm

If you can open more than one segment it becomes hard to know where the the accordion ends.
That is entirely true, but that does not mean that the ability to do that would be a bad thing.

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 139
Joined: Mon Jul 31, 2006 1:39 am
Contact:

Re: Accordion Functionality

Post by strongbow » Wed Nov 27, 2024 12:11 am

bn wrote:
Tue Nov 26, 2024 3:11 pm
If you can open more than one segment it becomes hard to know where the the accordion ends.

To display different sets of controls in a segment I think the user would be more familiar with the tab-panel control. Easy to hide and show groups of controls for each tab. An accordion is more for information than switching interface elements.
Yes, that's reasonable. Sometimes a tab interface may be not quite so useful, eg. when there's a progressive sequence of actions and in a new section (or tab) it's useful to refer to previous ones. In both a tabbed and a single section view accordion, you have to open the other one to refer to entries. I think it'd be a useful model to be able to view none, some or all sections, expanding or contracting as desired.

Thanks again, cheers!

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”