Ionic 6隐藏部分日期时间标头

t5zmwmid  于 2022-12-08  发布在  Ionic
关注(0)|答案(1)|浏览(137)

I am using Ionic 6 with Angular. I have a datetime component and I have set the title slot, such as:

<ion-datetime [showDefaultTitle]="false" presentation="date">
  <span slot="title">Title</span>
</ion-datetime>

The issue is that this displays my title as subtitle and another title containing the currently selected date as the header. On their example in their own documentation this is not even there.
My question is how can I remove this additional header?
It is added with the class datetime-selected-date . I tried not displaying this class by setting the property display: none but it does not do the trick even when doing this with ::ng-deep .

8tntrjer

8tntrjer1#

我已经使用此结构在日期选择器上方显示标题,但标题中不显示日期:

<ion-item>
    <ion-label>...</ion-label>
    <ion-datetime>...</ion-datetime>
</ion-item>

相关问题