Extending the Styling Panel of a Custom Widget

Objective

After completing this lesson, you will be able to extend a custom widget with a custom styling interface.

Add Custom Styling Panel

SAP Analytics Cloud provides a built-in Styling Panel in the story editor.

Custom widgets can extend this panel by adding custom configuration sections.

Exercise

In this exercise, you will add a custom styling component (styling.js) that exposes additional properties in the Styling Panel.

You will:

  1. create and edit the styling.js file
  2. upload the widget files to SAP Analytics Cloud
  3. apply styling changes in the story
  4. test the changes

Result

Story authors can customize the visual appearance of the widget using the Styling Panel.

Summary

Custom widgets can extend the Styling Panel to provide user-friendly configuration options.

These options allow story authors to configure certain aspects of widget behavior without using scripts.

The styling component is implemented as a Web Component.