I believe it’s possible, still learning the UX markup. With trigger.actions and callback functions inside UX but common way to do, for example when you update/edit/create your article model, you can just generate the date in functions and store the data with it.
I believe it’s possible, still learning the UX markup. With trigger.actions and callback functions inside UX but common way to do, for example when you update/edit/create your article model, you can just generate the date in functions and store the data with it.
Currently this app is showing news, no editing or adding yet. So it is just viewing articles.
I could do it from the API end, but it would be best to do it in the app. Because of locales etc.
It sounds wrong. If each News needs a value of date property, it must be in served by the backend. After fetching the data by client, you will need to convert it to local time.
Edit: However either you add date property after you fetch data (assuming it’s a JSON) for each News item for mocked data purpose or you export a single date string for every News object for styling purpose i suppose.
I could do it from the API end, but it would be best to do it in the app. Because of locales etc.
It sounds wrong. If each News needs a value of date property, it must be in served by the backend. After fetching the data by client, you will need to convert it to local time.
Thats what I meant, but I guess i typed it wrong. Here is the data from the API:
Well, I guess your first post mislead me somewhere.
You can use a trigger action to activate to view and before you generate the view, you make it wait for fetch() to complete and make modifications in JSON then send it to view. I think there are some other ways to do it. Like (https://www.fusetools.com/docs/fuse/triggers/whiletrue) can make a view to wait for a condition with observables.
Well, I guess your first post mislead me somewhere.
You can use a trigger action to activate to view and before you generate the view, you make it wait for fetch() to complete and make modifications in JSON then send it to view.
if you need further assistance on the subject, please post a complete, minimal reproduction that shows what you’ve tried so far. It’s impossible to help with just the snippets shown so far.
if you need further assistance on the subject, please post a complete, minimal reproduction that shows what you’ve tried so far. It’s impossible to help with just the snippets shown so far.