Skip to Content

sap.ui.unified.shell deprecated - what is the alternative?

Hi,

since sap.ui.unified.shell is seprecated since 1.44.0 I'm looking for an alternative. Isn't there a control in the framework anymore to display some user information and actions (log off, navigation back, home...)?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 15 at 03:37 AM

    Use sap.m.Shell.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 15 at 07:25 AM

    Hi Manual

    The Fiori Launchpad has a built in Shell with logoff, home, back, app title etc. So we only have to develop the pages in UI5, the rest will be displayed in the Fiori Launchpad Shell.

    If you don't have FLP and still need the icons and a header in your app, you can use the customHeader tag in a sap.m.Page and use a sap.m.OverflowToolbar to create a header that looks like Shell. Use ToolbarSpacer to align the icons/buttons/content left, in the middle and right.

    <Page
    	id="pageMainViewId"
    	<customHeader>
    		<OverflowToolbar>
    			// Left
    			<ToolbarSpacer />
    			// Middle
    			<Title text="My App Title" />
    			<ToolbarSpacer />
    			// Right
    			<Text text="Welcome {userName}" />
    			<Image
    				src="images/logo.jpg"
    				height="35px"></Image>
    		</OverflowToolbar>
    	</customHeader>
    	<content>
    	...
    
    

    Regards

    Antonette

    Add comment
    10|10000 characters needed characters exceeded