2017-03-14 11 views
1

現在複数のデータフィールドを持つ単純なリストを作成しようとしています。私が単純なイオンリストの代わりにグリッドを選択したのは、ヘッダーを整列させたいという複数のデータフィールドがあるからです。各行はクリック可能なディテールでなければなりません。これにより、.push()コマンドで別のページに移動します。グリッドの開始後にイオングリッドまたはイオンアイテムの直後に何もないスタイリングのため、列ヘッダーは列データと整列しません。ヘッダーセクションをボタンアイテムにすると、マッチアップします。これを回避する方法はありますか?または、イオン列オブジェクトのボタンスタイルを基本的に再作成する必要がありますか?イオン2グリッドヘッダーが列データで整列していない

<ion-grid> 
    <ion-row align-items-start> 
    <ion-col width-10 text-left no-border no-padding>Work Order</ion-col> 
    <ion-col width-10 text-left no-border no-padding>Line</ion-col> 
    <ion-col width-10 text-left no-border no-padding>Job Code</ion-col> 
    <ion-col width-10 text-left no-border no-padding>Vehicle</ion-col> 
    <ion-col width-25 text-left no-border no-padding>Description</ion-col> 
    <ion-col width-10 text-left no-border no-padding>Time</ion-col> 
    <ion-col width-10 text-left no-border no-padding>Code</ion-col> 
    <ion-col width-10 text-left no-border no-padding>Repair Type</ion-col> 
</ion-row> 



<button ion-item no-margin *ngFor="let job of jobs" ngDefaultControl no-border no-padding> 
    <ion-row align-items-start> 
    <ion-col width-10 text-left no-border no-padding>{{job.wo}}</ion-col> 
    <ion-col width-10 text-left no-border no-padding>{{job.lineNumber}}</ion-col> 
    <ion-col width-10 text-left no-border no-padding>{{job.vmrs_maj}} - {{job.vmrs_int}} - {{job.vmrs_min}}</ion-col> 
    <ion-col width-10 text-left no-border no-padding>{{job.vehicle}}</ion-col> 
    <ion-col width-25 text-left no-border no-padding>{{job.description}}</ion-col> 
    <ion-col width-10 text-left no-border no-padding>{{job.hoursWorked}}:{{job.minutesWorked}}</ion-col> 
    <ion-col width-10 text-left no-border no-padding>{{job.completionCode}}</ion-col> 
    <ion-col width-10 text-left no-border no-padding>{{job.repairType}}</ion-col> 

    </ion-row> 
</button> 



</ion-grid> 

答えて

0

イオングリッドは12個のカラムで構成されており、カラム全体の属性にcol-12を使用します。 12列しか選択できません col-6、3 col-4、col-3 6 col-2 12 col-1、またはcol-4行の2列のようないくつかのコンボがあります。 col-8はそれぞれ1/3、2/3を占める。それはすべてカバーされていますhere

関連する問題