1. #1
    Sencha User samoas's Avatar
    Join Date
    Apr 2010
    Location
    Italy
    Posts
    6
    Vote Rating
    0
    samoas is on a distinguished road

      0  

    Default Test application Cars: flyout config - edit template

    Test application Cars: flyout config - edit template


    hi guys, first of all sorry for my english...
    i'm trying to re-create example project "cars" with architect 2.0 but i have a problem when the guide says:

    "Configure the display template for the detail (middle) Panel. Select it in the Canvas, click its Flyout Config button, and click Edit Template. The body of the component becomes an editable text area. Enter the following HTML markup for the template:
    <img src="data/{img}" style="float: right" /> Manufacturer: {manufacturer}<br> Model: <a href="{wiki}" target="_blank">{model}</a><br> Price: {price:usMoney}<br>
    "
    i'm sticky 'cause there's no more "Edit template" button in the Flyout Config.

    how can i insert the html in the template?

    thanks!

    Samuele

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default


    You are definitely using a panel? No reason why should not be there...

  3. #3
    Sencha User samoas's Avatar
    Join Date
    Apr 2010
    Location
    Italy
    Posts
    6
    Vote Rating
    0
    samoas is on a distinguished road

      0  

    Default


    yes. i'm definitely using a panel. i'm following the guide...

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default


    Strange.... Panels have Edit Template right at the top of the flyout

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default


    Sure you're not using a container rather than a panel?

  6. #6
    Sencha User samoas's Avatar
    Join Date
    Apr 2010
    Location
    Italy
    Posts
    6
    Vote Rating
    0
    samoas is on a distinguished road

      0  

    Default


    now i'm not at the pc with the app. but later i will check again and let you know. thanks in advance!

  7. #7
    Sencha User samoas's Avatar
    Join Date
    Apr 2010
    Location
    Italy
    Posts
    6
    Vote Rating
    0
    samoas is on a distinguished road

      0  

    Default


    i've just checked. it's definitely a panel. Ext.panel.panel. but there's no "edit template" button...

  8. #8
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default


    And if you add a fresh panel component? Do you still have no template on the fly out?

  9. #9
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,359
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Did you put another item inside of it? Once a component has items within it, template no longer become a possible configuration.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  10. #10
    Sencha User
    Join Date
    Mar 2013
    Posts
    1
    Vote Rating
    0
    vprotocol is on a distinguished road

      0  

    Default


    I am a new user to Sencha ,I am trying to do a replica of Car store tutorial, but stick on to the same problem... using SA 2.1.0, build 678, any one help .. pls, is there any other way to do Edit template apart from on fly setting button ?

Thread Participants: 3

Tags for this Thread