Ionic List Component

Source: Internet
Author: User

See: Http://ionicframework.com/docs/css/components

Code One: www/index.html

<body ng-app= "Myreddit" ng-controller= "Redditctrl" ><ion-pane>  <ion-header-bar class= " Bar-positive ">    




Code two: Www/css/style.css
/* Empty. Add your own CSS if you like */h2.story-title {  white-space:normal;  Height:3.6em;}

After setting 3.6em. The title bar will probably occupy a height of three rows, so that the domain line is closer to the bottom and looks more beautiful.

Ionic List Component Basic usage <ul class= "list" ><li class= "item" >xxx</li></ul>

Where the picture can be set to Item-avatar-left or Item-thumbnail-left


    1. text-overflow: ellipsis;
    2. white-space: nowrap;
This is the default style for the H2 title bar if the title is too long the end will be truncated and displayed as ..., set to White-space:normal, you can wrap the display. Or you can add item-text-wrap directly to a.

Final effect:




Ionic List Component

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.