簡體   English   中英

如何在 dx-toolbar (DevExtreme) 中自定義下拉按鈕?

[英]How to customize dropdown button in dx-toolbar (DevExtreme)?

我在 Angular(v8.2.14) 中使用 DevExtreme(v20.1.4) 工具欄組件。
當我放置一個dx-toolbar並為工具欄項設置locateInMenu="always"時,我看到一個帶有dx-icon-overflow的下拉按鈕。

有什么方法可以自定義此按鈕以使其上有一個字符串?

我使用 CSS 來更新該下拉按鈕。

.customized-toolbar .dx-toolbar-button .dx-dropdownmenu-button .dx-button-content {
  & > i {
    display: none !important;
  }

  &:after {
    display: block;
    content: 'Other Actions';
    color: white;
    line-height: 18px;
    font-size: 14px;
  }
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM