{"title":"ShowAs Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-showas-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-showas-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-showas-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies how an action group should be rendered","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":110,"chars":33},{"level":2,"title":"Property value","slug":"property-value","at":143,"chars":265},{"level":2,"title":"Syntax","slug":"syntax","at":408,"chars":42},{"level":2,"title":"Remarks","slug":"remarks","at":450,"chars":1537},{"level":2,"title":"Example","slug":"example","at":1987,"chars":218},{"level":2,"title":"Example 2","slug":"example-2","at":2205,"chars":989},{"level":2,"title":"Related information","slug":"related-information","at":3194,"chars":115}],"text":"> Version: _Available or changed with runtime version 10.0._\nSpecifies how an action group should be rendered\n## Applies to\n Page Action Group\n## Property value\nValue|Available or changed with|Description\nStandard|runtime version 10.0|Specifies that an action group should be rendered as a standard group.\nSplitButton|runtime version 10.0|Specifies that an action group should be rendered as a split button.\n## Syntax\n```al\nShowAs = SplitButton;\n```\n## Remarks\nBy specifying that the group should be rendered as SplitButton, the group is rendered as a combination of a button and a menu. This type of control gives you a fast one-click access to the first action, which is set to devenv-visible-property and to devenv-enabled-property in a menu via the left button part and access to other related actions via the right dropdown part.\n> NOTE\n> Re-ordering the actions in a split button group from a page extension or page customization can change the action used for the split button.\nBe aware of the following design guidance:\n Split buttons aren't supported in context menus. When the feature key ModernActionBar is turned off, then it isn't supported if the ShowAs property is set to SplitButton on a promoted action category group.\n Mobile clients don't support split buttons and if the ShowAs property is set to SplitButton, it will be ignored.\n Any tooltip, caption, or image property set on a group, isn't rendered, if the group is defined as a split button. It's still a best practice to set these properties, because they're used, if the group is rendered as a regular group, for example, on mobile clients.\n A split button can be nested inside another split button.\n For personalization from the UI, it's possible to drop an action into a split button and the action will then become the primary action, if the action is enabled and visible. During personalization it's also possible to reorder the child actions, which will dynamically update the primary action as necessary.\n## Example\n```al\ngroup(MyGroup)\n{\n    ShowAs = SplitButton;\n\n    action(MyAction)\n    {\n    }\n    ...\n\n```\nThe group MyGroup will be rendered as split button, which gives you a one-click access to the action MyAction.\n## Example 2\nThe following example illustrates split button behavior if you use a promoted action category with the ShowAs property.\n```al\n...\narea(Promoted)\n        {\n            // Not rendered as a split button when the feature flag is OFF\n            group(Category_New) // This is a promoted action category\n            {\n                Caption = 'New';\n                ShowAs = SplitButton;\n\n                actionref(TestAction1_Promoted; TestAction1)\n                {\n                }\n\n                actionref(TestAction2_Promoted; TestAction2)\n                {\n                }\n            }\n\n            // Rendered as a split button (whether feature flag is ON or OFF)\n            group(Test)\n            {\n                ShowAs = SplitButton;\n\n                actionref(TestAction1_Promoted2; TestAction1)\n                {\n                }\n\n                actionref(TestAction2_Promoted2; TestAction2)\n                {\n                }\n            }\n        }\n```\n## Related information\nGetting Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}