如何从Superset用户界面更改Apache Superset模板? [英] How to Change Apache Superset Template from the Superset User Interface?

查看:1328
本文介绍了如何从Superset用户界面更改Apache Superset模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apache Superset UI具有CSS模板选项卡,显然可以使用它来编辑和更改UI外观。
我尝试编辑CSS工作表,但没有任何变化,我遗漏了什么吗?
更改Apache Superset外观的最佳方法是什么。

The Apache Superset UI has a CSS template tab, which can be used apparently to edit and change the UI skin. I tried editing the the CSS sheet but nothing is changing, Am I missing something? What will be the best way to change Apache Superset skin.

推荐答案

Superset文档有点稀疏,我无法找到有关如何执行此操作的明确说明。我将留下一个答案,希望可以节省其他人的时间。

The Superset documentation is a bit sparse and I was unable to find clear instructions on how to do this. I'm leaving an answer that will hopefully save others time.

注意:已在Apache Superset v0.22.1上进行了测试

Note: tested on Apache Superset v0.22.1

创建CSS模板


  • 使用具有管理员权限的帐户登录到Superset

  • 转到管理。然后 CSS模板。这将带您进入显示所有可用模板的页面。

  • 通过单击 + 图标

  • < a href = https://imgur.com/a/8BidBCr rel = noreferrer>指定模板名称 Css 。单击保存

  • Login to Superset with an account that has admin privileges
  • Go to Manage. Then CSS Templates. This will take you to a page showing all the available templates.
  • Create a new CSS template by clicking the + icon in the top right.
  • Specify the Template Name and Css. Click Save.

应用CSS模板

在Superset中如何工作,是您手动将模板应用于仪表板。因此,请牢记...

How it works in Superset is you manually apply the templates to dashboards. So with that in mind ...


  • 转到要更改其CSS的仪表板

  • Go to the dashboard whose CSS you'd like to change

单击编辑仪表板它应该在右上角。如果看不到编辑仪表板按钮,则意味着您没有所需的特权来对仪表板进行任何更改。

Click Edit Dashboard. It should be available in the top right. If you can't see the Edit Dashboard button then that means you don't have the required privileges to make any changes to the dashboard.

点击 Actions (操作)下拉按钮,然后一直向下进行 Edit CSS (编辑CSS)。这将允许您访问之前在步骤1中创建的所有模板。选择所需的模板。在选择过程中,CSS会自动应用,您可以获取预览

Click the Actions dropdown button and go all the way down to Edit CSS. This will allow you to access all the templates that you'd created previously in step 1. Select the template you want. During the selection process, the CSS will be applied automatically and you can get a preview of how it's going to look.

您已经选择了模板。返回 操作下拉按钮,但这一次单击保存 保存更改。

Once you have selected a template. Go back to the Actions dropdown button but this time click Save to save your changes.

这就是全部!

这篇关于如何从Superset用户界面更改Apache Superset模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆