thunkable / thunkable-issues

24 stars 9 forks source link

Customizable text for Data Viewer List with no data #722

Open tatiang opened 4 years ago

tatiang commented 4 years ago

Is your feature request related to a problem? Please describe. Not really a problem... just a minor improvement. When a data viewer list is empty because the data source has no rows, the data viewer list displays "no data found" on the screen.

Describe the solution you'd like The ability to specify what the "no data found" message is. For example, I might prefer to have it say "Please search for a location below" or "No cities have been selected yet" or some other custom message that relates to the content of my app. "No data found" is useful as a developer but from an app user's standpoint, it sounds technical and doesn't mean much in the context of a particular app.

Describe alternatives you've considered I haven't found a way to replace the text. I suppose I could place an object over it somehow but that seems kind of messy.

Which platform are you asking for? Thunkable ✕ (x.thunkable.com)

Additional context This is happening during testing on Thunkable Live on an iPhone 11.

MRifaau commented 3 years ago

Have you found any solution?

amyngai commented 2 years ago

hi @tatiang , do you still have this request? If so, can you share a screenshot of the design you're trying to accomplish? I think I mostly understand the request, but it would be great to see what you're thinking in context of a real design. Thanks!

tatiang commented 2 years ago

It would be great to have a way to customize the text that appears, yes.

Instead of this:

image

There could be a custom field like this:

mock up

amyngai commented 2 years ago

ah! I just clarified with our engineers. This is a very reasonable and straightforward request. I'll add some details on our end internally. We're currently putting together a series of updates for the dataviewer.

Bear in mind a few things however - I believe a local datasources requires 1 row, in which case it won't ever be "empty" . We can adjust this however if it's a big need. I've just tried this with Airtable and it won't show "no data" unless all the rows are deleted. So if there are 3 empty rows, it's technically not "empty", there needs to be 0 rows showing.

tatiang commented 2 years ago

Oh great! Yes, good point about a local data source needing to have at least 1 row. It does show "no data" if I remove all other rows from the local data source and leave the cells/columns empty for that first row.

I think it makes sense to check for a single row that is empty or as you mentioned, zero rows in Airtable. Not sure about Google Sheets since it always has rows visible but probably it would work similar to a local data source.