HI @julilis ,
Which data source do you use within your app? A SP List?
Do you add a Row Index column within your SP List?
If the data source you used witin your app is a SP List, based on the needs that you mentioned, you could configure your app as below:
Set the X property of the Icon in your Gallery to following formula:
If(
Mod(ThisItem.ID,2)=0,
Parent.TemplateWidth - NextArrow2.Width-5,
0
)
If the data source you used in your app does not contain a Row Index column, please consider add a Number column in your data source to store the Row Index firstly.
I have made a test on my side, please take a try with the following workaround:
Set the OnStart property of the App to following:
Clear(TempCollction);
ForAll(
RenameColumns('YourDataSource', "PrimaryColumn", "PrimaryColumn1"),
Collect(TempCollction, 1);
Patch('YourDataSource', LookUp('YourDataSource', PrimaryColumn = PrimaryColumn1), {IndexColumn: CountRows(TempCollction)})
)
Note: The IndexColumn represents the Number column in your data source, which used to store the row index value.
Set the Items property of the Gallery to following:
'YourDataSource'
Set the X property of the Icon in your Gallery to following formula:
If(
Mod(ThisItem.IndexColumn, 2)=0,
Parent.TemplateWidth - NextArrow2.Width-5,
0
)
Please take a try with above solution, check if the issue is solved.
Best regards,