0.0.3 • Published 1 year ago

@ottogroup/ui5-launchpadhelpicon v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@ottogroup/ui5-launchpadhelpicon

This package adds a small help icon to the launchpad shellbar.

Demo

https://www.npmjs.com/package/@ottogroup/ui5-launchpadhelpicon

Setup

  1. Install ui5-tooling-modules as described here:

    • package.json (devDependencies + ui5.dependencies)
    • ui5.yaml (server.customMiddleware + builder.customTasks)
  2. Install packages

    pnpm i @ottogroup/ui5-launchpadhelpicon --dev

  3. 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"
                ]
            }
        }
    }
  4. 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

https://www.npmjs.com/package/ui5-tooling-modules