# How to display inline items inside ion-item-sliding

**URL:** <https://forum.ionicframework.com/t/how-to-display-inline-items-inside-ion-item-sliding/109290>\
**Category:** ionic-v3\
**Created:** [October 18, 2017, 2:57pm UTC](https://forum.ionicframework.com/t/how-to-display-inline-items-inside-ion-item-sliding/109290 "2017-10-18T14:57:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hertanet](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@hertanet](https://forum.ionicframework.com/u/hertanet)\
**Post date:** [October 18, 2017, 2:57pm UTC](https://forum.ionicframework.com/t/how-to-display-inline-items-inside-ion-item-sliding/109290/1 "2017-10-18T14:57:30Z")

</div>

would like to display as **inline-block**  **the image** and other **items** all inside **ion-item-sliding**

like the documentation: [https://ionicframework.com/docs/api/components/item/ItemSliding/](https://ionicframework.com/docs/api/components/item/ItemSliding/)

you can see the virtual phone for understanding what I mean

my code here

```auto
<ion-list *ngFor="let dev of developers" >
    <ion-item hidden > <!--this is hidden -->

        <ion-input [(ngModel)]="developer.favid" value="{{ dev.favid }}" ></ion-input>
  </ion-item>
  <ion-item-sliding>
      <!-- -->
      <ion-grid>      
      <ion-row>

            <ion-col col-3 >
       
               <ion-item style="float:left;">
                  <ion-thumbnail item-left>
                    <img src="{{dev.img}}" width="10%" height="10%" />
                  </ion-thumbnail>
               </ion-item>   
           <!-- -->    
              </ion-col>
           

            <ion-col col-9 >
          
             
                    <ion-item>
                      <h2>{{ dev.title }} </h2>
                  
                    <p>{{ dev.categorie }} </p>

                    <p>{{ dev.favid }} </p>
                  </ion-item> 
         
    <!-- --> </ion-col>

      </ion-row>
      </ion-grid>
  
  
        <ion-item-options >
          <button ion-button (click)="deleteDeveloper(developer.favid)"><ion-icon name="trash"></ion-icon> Delete</button>
        </ion-item-options>

</ion-item-sliding>
</ion-list>

```

this code diplay nothing when running

any suggestion plz

---

<div class="post-metadata">

**Author:** ![Tommertom](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tommertom](https://forum.ionicframework.com/u/Tommertom)\
**Post date:** [October 18, 2017, 4:46pm UTC](https://forum.ionicframework.com/t/how-to-display-inline-items-inside-ion-item-sliding/109290/2 "2017-10-18T16:46:06Z")

</div>

Hi

It would not cross my mind to put a grid in a item-sliding, for starter

Maybe you need to build the code up from the ionic code example, not using variables, then slowlt add the ionic components to see if it at all will work

And then add the bindings (using [] btw)

Regards

Tom

---

<div class="post-metadata">

**Author:** ![hertanet](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@hertanet](https://forum.ionicframework.com/u/hertanet)\
**Post date:** [October 18, 2017, 5:10pm UTC](https://forum.ionicframework.com/t/how-to-display-inline-items-inside-ion-item-sliding/109290/3 "2017-10-18T17:10:40Z")

</div>

Im not understand exactly what you mean,  
how then the maker’s documentation do that ( if you check the URL the code is different than phone view content )

as you can see I need grid system to make two **col**  
from where can get code example to make correction ??

---

<div class="post-metadata">

**Author:** ![Tommertom](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tommertom](https://forum.ionicframework.com/u/Tommertom)\
**Post date:** [October 18, 2017, 6:43pm UTC](https://forum.ionicframework.com/t/how-to-display-inline-items-inside-ion-item-sliding/109290/4 "2017-10-18T18:43:11Z")

</div>

Hi

I suggest you build the html code using no {{ }} and functions etc. So no logic. If you manage to build the UI, then add the logic.

And I suggest to start with the item-sliding example in the ionic documentation and then add one piece at a time, assuring continuously that the code works. Then you will find where it hurts.

> **[Ionic Framework](https://ionicframework.com/docs/api/components/item/ItemSliding/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

```auto
<ion-list>
  <ion-item-sliding #item>
    <ion-item>
      Item
    </ion-item>
    <ion-item-options side="left">
      <button ion-button (click)="favorite(item)">Favorite</button>
      <button ion-button color="danger" (click)="share(item)">Share</button>
    </ion-item-options>

    <ion-item-options side="right">
      <button ion-button (click)="unread(item)">Unread</button>
    </ion-item-options>
  </ion-item-sliding>
</ion-list>

```

It is not easy to debug code I wouldn’t build in the first place.

Regards  
Tom

---

<div class="post-metadata">

**Author:** ![hertanet](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@hertanet](https://forum.ionicframework.com/u/hertanet)\
**Post date:** [October 18, 2017, 7:17pm UTC](https://forum.ionicframework.com/t/how-to-display-inline-items-inside-ion-item-sliding/109290/5 "2017-10-18T19:17:28Z")

</div>

finaly i got it 🙂

i think ionic framework set css by default so  
im just make this custumazation

```auto
<ion-list *ngFor="let dev of developers" >
    <ion-item hidden > <!--this is hidden -->

        <ion-input [(ngModel)]="developer.favid" value="{{ dev.favid }}" ></ion-input>
   </ion-item>
  <ion-item-sliding >
      <!--     
      <ion-grid>      
      <ion-row>

            <ion-col col-3 >
       -->
               <ion-item >
                 
                  <ion-thumbnail item-left>
                    <img src="{{dev.img}}" width="10%" height="10%" />
                  </ion-thumbnail>
             
                   
          <!-- </ion-col>
            <ion-col col-9 >
         
-->  
                          
                            
                  <h2>{{ dev.title }} </h2>
                
                  <p>{{ dev.categorie }} </p>

                  <p>{{ dev.favid }} </p>
                </ion-item> 
    
        <!-- </ion-col>

          </ion-row>
          </ion-grid>
      -->
  
        <ion-item-options >
          <button ion-button (click)="deleteDeveloper(developer.favid)"><ion-icon name="trash"></ion-icon> Delete</button>
        </ion-item-options>

</ion-item-sliding>
</ion-list>

```

anyway tnx for you suggestion but this working for me
