Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed the server role to DataAnalyticsServer based on Nisala's feedback.

...

  1. Create a custom theme file.
    Create a custom theme file as a Carbon archive file, which has the .car extension (e.g., Custom-Theme.car). Use dashboards/theme as the artifact type of the theme file.
    For example, the artifact.xml file for a custom theme is as follows:

    Code Block
    <artifact name="custom-theme-sample" version="1.0.0" type="dashboards/theme" serverRole="DashboardServerDataAnalyticsServer">
            <file>custom-theme-sample</file>
    </artifact>

    The folder structure for the custom theme file is as follows:

    Code Block
    css  
    js    -----
            ues.js
            ues-prefs.js
            ues-gadgets.js
            ues-dashboards.js
            gadget-properties.js
            gadget-handlebar-helpers.js
            dashboard.js
            ds-ajax-api.js
    templates ---
            includes ----
                    portal-header.jag
                    portal-footer.jag
                    control-panel.jag
                    light-dark-switcher.jag
                    project-title.jag


    The css folder can contain any stylesheets with the .css extension. However, the js and template folders should contain the files defined in the above structure.

  2. Deploy the custom theme.

    1. Sign into the WSO2 Data Analytics Server (WSO2 DAS) Management Console.
      https://<hostname>:9443/carbon

    2. Click Main, navigate to Carbon Application and click Add.
    3. Select the Carbon Application Artifact (.car) file and upload it.
      The uploaded custom theme appears as follows:

...