Advertisement
Guest User

Messages_tab

a guest
May 12th, 2016
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.00 KB | None | 0 0
  1. <StackLayout *tabItem="{title: 'Messages'}" >
  2.   <GridLayout rows="auto, *">
  3.   <FAB (tap)="fabTap()"
  4.             icon="res://ic_create_white"
  5.             rippleColor="#f1f1f1"
  6.             class="fab-button"
  7.             row="1"></FAB>
  8.     <PullToRefresh (refresh)="refreshMessagePage($event)">
  9.      <StackLayout>
  10.        <ListView row="1" [items]="messagesList | async" separatorColor="transparent">
  11.         <template let-item="item" [ngIf]="messagesList.length>0">
  12.           <CardView  margin="10">
  13.             <StackLayout>
  14.               <Label text="De : {{item.sender}}" textWrap="true" [class.boldFont]="true" [class.renderTextMsg]= "true"></Label>
  15.               <Label text="Objet : {{item.objet}}" [class.renderTextMsg]= "true" textWrap="true"></Label>
  16.               <HtmlView html="{{item.contenu}}" [class.renderTextMsg]= "true"></HtmlView>
  17.             </StackLayout>
  18.           </CardView>
  19.         </template>
  20.       </ListView>
  21.     </StackLayout>
  22.   </PullToRefresh>
  23. </GridLayout>
  24. </StackLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement