当前位置:网站首页>Ionic4 learning notes 13 - Classification List of an East Project
Ionic4 learning notes 13 - Classification List of an East Project
2022-07-24 18:24:00 【tongle_ deng】
1、Tab2 Page code
<ion-content>
<div class="cate_content">
<div class="cate_left">
<ion-list lines="full">
<ion-item *ngFor="let item of lCateList">
<ion-label>{
{item}}</ion-label>
</ion-item>
</ion-list>
</div>
<div class="cate_right">
<ion-grid fixed>
<ion-row>
<ion-col size="4" *ngFor="let item of rCateList">
<img [src]="item.pic" />
<p>{
{item.title}}</p>
</ion-col>
</ion-row>
<ion-row>
<ion-col size="4" *ngFor="let item of rCateList">
<img [src]="item.pic" />
<p>{
{item.title}}</p>
</ion-col>
</ion-row>
<ion-row>
<ion-col size="4" *ngFor="let item of rCateList">
<img [src]="item.pic" />
<p>{
{item.title}}</p>
</ion-col>
</ion-row>
<ion-row>
<ion-col size="4" *ngFor="let item of rCateList">
<img [src]="item.pic" />
<p>{
{item.title}}</p>
</ion-col>
</ion-row>
</ion-grid>
</div>
</div>
</ion-content>2、css Code ( important )
.cate_content{
width: 100%;
height: 100%;
display: flex;
.cate_left{
width: 9rem;
height: 100%;
overflow-y: auto;
}
.cate_right{
flex:1;
height: 100%;
overflow-y: auto;
}
}3、 Data sources
public lCateList:any[]=[];
public rCateList:any[]=[];
constructor(){
// Left analog data
for(let i=0;i<16;i++){
this.lCateList.push(` classification ${i}`);
}
// Right data
for(var i=1;i<=12;i++){
this.rCateList.push({
pic:'assets/list'+i+'.jpg',
title:' The first '+i+' individual ',
})
}
}
边栏推荐
- jmeter --静默运行
- Pytoch's Journey 2: gradient descent
- Admin component
- 5. Reference type and value type as function parameters?
- MySQL configuration file
- Alibaba /166 obtains the API instructions for all products in the store
- Four ways of simple interest mode
- We have to understand the four scopes: application, session, request and page
- JMeter -- prometheus+grafana server performance visualization
- Growth of operation and maintenance Xiaobai - week 8 of Architecture
猜你喜欢

微信小程序逆向

Mozilla foundation released 2022 Internet health report: AI will contribute 15.7 trillion yuan to the global economy in 2030, and the investment in AI in the United States last year was nearly three t

jmeter --静默运行

Three ways of redis cluster

6126. 设计食物评分系统

根证书的有效期与服务器SSL证书一样长吗?

In depth analysis of the famous Alibaba cloud log4j vulnerability

Install jumpserver

【“码”力全开,“章”显实力】2022年第1季Task挑战赛贡献者榜单

EasyUI framework dialog repeated loading problem
随机推荐
Revocable search board
Get familiar with pytoch and pytoch environment configuration
Section 11 cache avalanche, hot data failure follow Daewoo redis ------- directory post
Introduction and use of Pinia
JS数组方法 sort() 排序规则解析
Missing value processing
Icml2022 Best Paper Award: learning protein reverse folding from millions of predicted structures
Learn redisson from scratch ------- topics (subscription and distribution)
QT—动画框架
Mysql——》BufferPool相关信息
Wechat applet
线段树合并板子
Alibaba 1688 keyword search product API usage display
How to solve the problem that yaml in idea is unrecognized or red?
6126. Design food scoring system
根证书的有效期与服务器SSL证书一样长吗?
Custom web framework
开窗函数(1)-部门工资前三员工
13. What is the difference between onkeydown, up and onkeypress?
Pytorch的旅程一:线性模型