How to create responsive tables in ionic 1

I am creating on mobile application. that mobile application contains 12 columns. mobile display fit only five columns. so i need to create responsive table. but it’s not working.

The table code is:

		</tr>


		<tr	ng-repeat="produceData in produceList">

			<td>{{produceData.produceDate |date:'dd/MM/yyyy'}}</td>
			<td>{{produceData.produceId}}</td>
			<td>{{produceData.name.firstName}}</td>
			<td>{{produceData.itemName}}</td>
			<td>{{produceData.productionUnitType}}</td>
			<td>{{produceData.minUnits}}</td>
			<td>{{produceData.maxUnits}}</td>
			<td>{{produceData.productionStartFrom |date:'dd-MM-yyyy'}}</td>
			<td>{{produceData.productionAvailable}}</td>
			<td>{{produceData.lastDateForBid |date:'dd-MM-yyyy'}}</td>
			<td>{{produceData.expectedCost}}</td>
			<td>{{produceData.produceType}}</td>
			<td><button type="button" class="btn btn-primary"
					ng-click="generateBid(produceData)">Click To Bid</button></td>

		</tr>
	</table>
  </div>
Produce Date Production Id Name Item Name Unit Type Min Unit Max Unit Production Start Date Available Frequency Last Date for Bid Price
per Unit
Produce Type Bid

create your table in ion-scroll directive and enable horizontal scroll.

<ion-scroll direction="x">
---------table-content--------
</ion-scroll>

https://www.tutorialspoint.com/ionic/ionic_js_scroll.htm

thank you for replay…it’s not working

watch this codepen maybe this will be helpful

https://codepen.io/anon/pen/WjzWBN

it’s will restrict verical scrolling

do you want vertical scrolling in your table too.

yes both is required the table contains 12 columns and 50 rows

i have edited the codepen it is now scrolling in both directions. have a look

height property not working it will automatically stopped…

and check it below link its working or not in ionic
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_table_responsive

you can try this following format…I hope it will be helpful to you

<div class="row" ng-repeate="produceData in produceList">

 <div class="col">
      {{produceData.produceDate |date:'dd/MM/yyyy'}}
 </div>

 <div class="col">
         {{produceData.produceId}}
 </div>

 <div class="col">
       ......
 </div>
</div>

it will not fit properly on table.only displayed 6 columns

you can use it in also na

no.i want to displayed all the columns