
Context:
Control is a gallery that is used to navigate through the app.
Gallery that is also in a component.
Component Name: Tabs
Gallery Name: galTabs
Tabs - Property = TabsContent:
Table({Link: "Link", Phases: Table({Id: 1, Value: "Phase 1"}, {Id: 1, Value: "Phase 2"}), Order0: 1})galTabs - Items - Tabs.TabsContent
galTabs - Controls - Visible
If(
ThisItem.Order0 = 9 And Tabs.CurrentRole = "Local Head of PD",
true,
ThisItem.Order0 = 9 And !(Tabs.CurrentRole = "Local Head of PD"),
false,
!(ThisItem.Order0 = 1) And (Tabs.CurrentRole = "Requester" || Tabs.CurrentRole = "User"),
false,
Tabs.CurrentPhase in ThisItem.Phases.Value)galTabs - another Control (not sure for what) - Visible
!(Tabs.CurrentPhase in ThisItem.Phases.Value)Sharepoint list that I think it should be used as the TabsContent Property for when importing the component.
I`m not sure how does this work, what do I need for the tabs to be visible, I understand that the user must be for a specific role, but what else?