Page 1 of 1

When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Fri May 02, 2014 9:17 am
by aggregate

Hello,

I would like to use the list view with split button enabled so that I can have separate functionality on the items that are returned.

I find that once I add a button to the list view item, then the split button disappears. The result is that when I click a button inside the returned results, any actions that are tied to the container (the List Item) are also fired.

Why does this happen and how can I accomplish the split with buttons in my detail?

Structure

List

  • List Item Button - Fire Action 1 (should not fire when Item Detail Button is clicked)
    • Item Detail Button - Fire Action 2

When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Fri May 02, 2014 9:54 am
by Serhii Kulibaba

Hello,

It should be helpful: https://getsatisfaction.com/apperyio/... ?


When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Fri May 02, 2014 11:21 am
by aggregate

Hi Sergiy,

I have already completed that guide, the issue isnt creating a clickable list. The issue is that when I add a button to the clickable list, I lose the ability to have the split button on the list.

  1. Create a list

  2. Make sure the list item has split button enabled

  3. Create an action on the split button

  4. Add a label for a name

  5. Add a label for an id

  6. Add a button

  7. Add an action to the button

    Notice that your split button action has disappeared (and so has the button it was tied to)

    Are you seeing what I am saying?


When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Fri May 02, 2014 1:25 pm
by Serhii Kulibaba

Sorry it is Appery.io bug, as workaround, you can use follow:

1) add custom css:
.insisible{
display:none;
}

2) add JS to mapping $[]-mobilelistitem:

$(element).find(":nth-child(1)").append(""+value._id+"");

It will add insisible tag with your information, that you can use after;


When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Fri May 02, 2014 3:49 pm
by aggregate

Thank you for the instructions.

I am not clear on how I can use the insistible tag... can you provide an example? Also, is there a timeline for a fix?


When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Sun May 04, 2014 5:38 am
by Serhii Kulibaba

There aren't different between visible and invisible tags.
set text into label:
Appery("labelName").text("test");
get text from label:
var text = Appery("labelName").text();

Sorry, but it's unknown timeline for a fix now, we'll tell you when it will be fixed.


When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Sun May 04, 2014 4:27 pm
by aggregate

Hi,

Thanks but it seems all that happened was that it grabbed the Id value and started writing it into each tag. I think I need to wait on the fix. What I need are separate buttons or the ability to remove the icon from the list item so that it doesn't look clickable while I wait on the fix.

Thank you for the update!


When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Tue May 06, 2014 10:08 pm
by Yurii Orishchuk

Hello.

Thanks for your reply.

We will update you when fix this bug.

Anyway you can try this functional after next update.

Thank & regards.


When using lists, button does not stay split when adding adding multiple items to Item List

Posted: Wed May 07, 2014 12:33 am
by aggregate

Thanks, cheers, looking forward to next update