You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom view.
On one of the appBar buttons that is added using "let config: Views.ICustomViewControllerConfiguration", I would like for it to open 2 options when the user clicks on the appBar button and then the user must select one of the 2 options that are also buttons. Similar as to how Show Receipts then open 2 menu options where one can select either Show Receipt or Show Gift Receipt.
Is there any GitHub examples that can show me how to use it ? If so, can you please point me in the right direction.
If not, can anybody help me figure out how to do it?
I think these menu options need to be linked to a command in the commandBar on: let config: Views.ICustomViewControllerConfiguration = { title: vTitle, commandBar: { commands: [ ... ]} };
Seeing that the IMenuOptions don't have an "Execute:" like the ICommandDefinition, how do I execute code when the user clicks on any of the 2 menu options?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a custom view.
On one of the appBar buttons that is added using "let config: Views.ICustomViewControllerConfiguration", I would like for it to open 2 options when the user clicks on the appBar button and then the user must select one of the 2 options that are also buttons. Similar as to how Show Receipts then open 2 menu options where one can select either Show Receipt or Show Gift Receipt.
Is there any GitHub examples that can show me how to use it ? If so, can you please point me in the right direction.
If not, can anybody help me figure out how to do it?
I get as far as :
`let HQFormMenuOptions: Controls.IMenuOptions = {
type: "button",
directionalHint: 0,
commands: [
{
id: 'PackSlipandLabel',
label: 'Packslip and label',
isVisible: true,
canExecute: true
`
I think these menu options need to be linked to a command in the commandBar on:
let config: Views.ICustomViewControllerConfiguration = { title: vTitle, commandBar: { commands: [ ... ]} };
Seeing that the IMenuOptions don't have an "Execute:" like the ICommandDefinition, how do I execute code when the user clicks on any of the 2 menu options?
Beta Was this translation helpful? Give feedback.
All reactions