ionic2中可自定义的日期时间选择器

时间:2017-04-03 06:31:25

标签: ionic2

enter image description here我不想通过使用标签从日期选择器中选择日期后显示日期是否可能以下是代码 如图所示,我不想显示MAR 31,2017是否可能?

    <ion-header>
      <ion-icon class="moreicon" name="more">
    <ion-datetime type="button" [(ngModel)]="myDate" (click)="get()"></ion-datetime>
  </ion-icon>
</ion-header>

1 个答案:

答案 0 :(得分:1)

在组件页面上,如下所示。

.scss

java.lang.IllegalArgumentException: View android.support.v17.leanback.widget.ShadowOverlayContainer{cee235a V.ED..... ........ 1854,334-2268,851} is not a direct child of android.support.v17.leanback.widget.HorizontalGridView{81dc26e VFE...... ........ 0,0-1920,605 #7f12014c app:id/row_content}
                                                   at android.support.v7.widget.RecyclerView.getChildViewHolder(SourceFile:4224)
                                                   at android.support.v17.leanback.widget.GridLayoutManager$3.createItem(SourceFile:1488)
                                                   at ct.a(SourceFile:78)
                                                   at android.support.v17.leanback.widget.Grid.j(SourceFile:346)
                                                   at android.support.v17.leanback.widget.GridLayoutManager.m(SourceFile:1734)
                                                   at android.support.v17.leanback.widget.GridLayoutManager.j(SourceFile:2070)
                                                   at android.support.v17.leanback.widget.GridLayoutManager.scrollHorizontallyBy(SourceFile:2005)
                                                   at android.support.v7.widget.RecyclerView$d.run(SourceFile:4722)
                                                   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
                                                   at android.view.Choreographer.doCallbacks(Choreographer.java:683)
                                                   at android.view.Choreographer.doFrame(Choreographer.java:616)
                                                   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
                                                   at android.os.Handler.handleCallback(Handler.java:751)
                                                   at android.os.Handler.dispatchMessage(Handler.java:95)
                                                   at android.os.Looper.loop(Looper.java:154)
                                                   at android.app.ActivityThread.main(ActivityThread.java:6120)
                                                   at java.lang.reflect.Method.invoke(Native Method)
                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)