1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    16
    Vote Rating
    0
    crankin is on a distinguished road

      0  

    Default Unanswered: Direct link to pictos icons

    Unanswered: Direct link to pictos icons


    I'm trying to link directly to a pictos icon from one of my views but not sure what the url is. Here's my code:

    itemTpl: Ext.create('Ext.XTemplate',
    '<tpl for=".">',
    '<div class="seat-details">',
    '<div>Seat {seat}</div>',
    '<input type="button" name="remove-seat-{seat}" value="Remove"/>',
    '<tpl for="seat_order">',
    '<div>({item.quantity}){item.short_name}<span style="float: right">${item.price}<span><img src="lib/touch/resources/themes/images/default/pictos/minus1.png" name="remove-item-{item.item_id}"/></div>',
    '</tpl>',
    '</div>',
    '</tpl>'
    ),

    My app hierarchy is basically this
    www
    - app
    -lib
    -touch
    -resources ... you get the idea.
    - index.html

    Basically I need to find out what to put in the src attribute for <img src=""

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Answers
    3355
    Vote Rating
    749
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I would think that path would work.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    16
    Vote Rating
    0
    crankin is on a distinguished road

      0  

    Default


    I'm not sure. What it does do is put a black bar where the image should be (See Screenshot). You'll notice I have other images that just have a question mark place holder. That's because the src url's on those are definitely wrong.

    iOS Simulator Screen shot Jan 5, 2012 3.06.47 PM.jpg

    I've seen the black bar thing before. When I added a iconCls to a button. I didn't apply the @include pictos-iconmask(myicon) so the image wasn't showing up.

    So I've included that mixin again for this image but still nothing.

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    16
    Vote Rating
    0
    crankin is on a distinguished road

      0  

    Default


    Here's a screenshot when I prepend "../" onto the url so src="../lib/touch/resources...

    iOS Simulator Screen shot Jan 5, 2012 3.17.23 PM.jpg

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    16
    Vote Rating
    0
    crankin is on a distinguished road

      0  

    Default


    Ok got it working. I had forgot to compile my sass

    But for future reference you must include the following in your scss file

    @include pictos-iconmask(iconname);

    And compile before it will work.
    Attached Images

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar