Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    70
    Vote Rating
    6
    mtraynham is on a distinguished road

      0  

    Default Display GWT/GXT widgets in XTemplate?

    Display GWT/GXT widgets in XTemplate?


    Is there a way to display a GWT/GXT widget in XTemplates? And if so, how?

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    87
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    XTemplates are for building raw html, and are good at doing it a lot - each time you call it, it quickly will build a new string that can be injected into the dom. No widgets can be declared within the template.

    But if you pass that SafeHtml instance to a GWT HTMLPanel or a GXT HtmlLayoutContainer, you can then add widgets inside of some of those elements rendered.

    In a Grid/ListView/etc, you don't have this option, because you are not supposed to draw widgets (large expensive things) over and over again - thats why all GXT 3 fields are usable as Cells in those places.

    What are you trying to do?

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    70
    Vote Rating
    6
    mtraynham is on a distinguished road

      0  

    Default


    Hey Colin,

    I'm trying to render a custom star-rating widget in the XTemplate for each item in my list. Since I have XTemplates driving my list view, I was wondering if passing a GWT widget would be acceptable and how to do it. Otherwise, I could also go down a javascript star-rating widget. Is javascript supported in XTemplates?

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    87
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    JS can't be used in 3.x xtemplates, and while it *can* be used in 2.x dynamic xtemplates, it is very very ugly.

    If you are using a ListView, you are (or could be) using a Cell to draw each item. You are probably using the render method to trigger your template to draw. In the same way, you should override onBrowserEvent, and see where the event came from.

    Cells are as powerful as widgets, but faster to draw, and harder to make. If you are drawing many rows, or need the selection features of the ListView, I'd definitly go with a Cell to fix this. Otherwise, if you really just want a stack of widgets, I'd make N StarRatingWidgets and stack them in a container like FlowLayoutContainer.

Thread Participants: 1