-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMListScreen table_data return value #63
Comments
I've had a similar thought, and came up with this: |
how do I spend this $0.02 cents Canadian? The drink machine isn't fooled at all. |
Agreed. This is a polishing detail we can work out later. I think a bit of my angst stems from the iOS platform too. Even if my The question then becomes: would supporting this shortcut cripple future growth of the Yes. Closing. But I'll get you next time gadget. next time...... |
I actually agree with your angst here. Re-opening for future discussion. |
class MyScreen < PM::TableScreen
def table_data
{
sections: [{
title: "My section",
cells: [{ ... }]
}]
}
end
end class MyScreen < PM::TableScreen
def table_data
{
cells: [{ ... }]
}
end
end |
I like the idea of creating a class MyScreen < PM::ListScreen
def list_data
[
{ ... cell ... },
]
end
end |
This is just for discussion.
On iOS, the return value for
table_data
is an[]
of sections. Each containing{cells:[]}
to get to the goods. Make sense.On Android, we have the same interface, but we don't have sections over here, so I feel like the interface isn't quite right.
Our current implementation says
[]
->PMBaseAdapter
and{adapter: ...}
->PMCursorAdapter
.It'd be super cool if
{cells: []}
could invoke the base adapter too.I'm creating a lot of
[{cells: cells}]
return values from mytable_data
screens. It'd be nice if it were just{cells: cells}
or even just[{cell 1},{cell2}]
.Just wanted to throw it out there because sections won't be a native thing on Android.
Holy crap this is so not a big deal. I'm cool with a
wontfix
label of shame. Just my $0.02 (Canadian).The text was updated successfully, but these errors were encountered: