簡體   English   中英

Sencha Touch 2日期選擇器組件和CSS:如何顯示隱藏的列名?

[英]Sencha Touch 2 date picker component & css: how to display hidden column names?

我正在使用可以顯示['month', 'day', 'year','hour','minute','ampm']的日期和時間選擇器。 來源在這里:https://bitbucket.org/nilsdehl/sencha-touch-2-sencha.io-example/src/cb29bfa284b2/sdk/src/picker/Date.js?at=master

一切正常,但日期選擇器不顯示標題。 這就是我想要的。 它們顯示在html頁面上,但是它們是CSS隱藏的。

例如,代碼以這種方式在頁面上生成Month

<div class="x-unsized x-picker-slot-title x-dock-item x-docked-top x-has-width x-item-hidden" id="ext-component-268" style="display: none!important;">
  <div class="x-innerhtml " id="ext-element-712">Month</div>
</div>

如您所見,樣式display: none!important; 如何覆蓋呢?

我敢肯定有一種方法可以通過更改.js文件中的某些選項來顯示列名,而不是通過覆蓋CSS樣式來顯示。 有人知道(“ ShowTitles”類)選項嗎?

無論如何,我沒有運氣找到這些方法來解決我的問題。

因此,如何刪除style="display: none!important;"

我找到了解決方案! 添加一個字符串

useTitles: true,

config:{}

暫無
暫無

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

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