@ottogroup/ui5-launchpadhelpicon
v0.1.1
Published
UI5 LaunchpadHelpIcon
Downloads
138
Readme
@ottogroup/ui5-launchpadhelpicon
This package adds a small help icon to the launchpad shellbar.
https://www.npmjs.com/package/@ottogroup/ui5-launchpadhelpicon
Setup
Install
ui5-tooling-modules
as described here:- package.json (devDependencies + ui5.dependencies)
- ui5.yaml (server.customMiddleware + builder.customTasks)
Install packages
pnpm i @ottogroup/ui5-launchpadhelpicon --dev
Set alias in
tsconfig.json
{ "compilerOptions": { "baseUrl": "./", // otherwise the node_modules folder can't be accessed "paths": { "@ottogroup/ui5-launchpadhelpicon": [ "node_modules/@ottogroup/ui5-launchpadhelpicon/src/LaunchpadHelpIcon" ] } } }
Use
LaunchpadHelpIcon
import LaunchpadHelpIcon from "@ottogroup/ui5-launchpadhelpicon"; const launchpadHelpIcon = new LaunchpadHelpIcon(); await launchpadHelpIcon.addItem({ name: "Google", url: "https://google.de", });
Useful links
https://github.com/SAP-samples/ui5-typescript-tutorial/tree/main/exercises/ex8