Jump to content

Recommended Posts

  • 3 weeks later...
  • 4 weeks later...
  • 4 weeks later...
Posted

Use function inside itemTpl:

config.itemTpl= new Ext.XTemplate(
    '<table class="lsttbl">'+
                 '<tr>'+                 
                  '<td class="lsttbl_title" style="width:100px;padding-bottom:10px;">שם מוצר:</td>'+
                  '<td class="lsttbl_info" style="color:#e91e63;padding-bottom:10px;">{3}</td>'+
                 '</tr>'+
                 '<tr>'+                  
                  '<td class="lsttbl_title" style="padding-bottom:10px;">כמות:</td>'+
                  '<td class="lsttbl_info" style="padding-bottom:10px;">{4}</td>'+
                 '</tr>'+
                 '<tr>'+                  
                  '<td class="lsttbl_title" style="padding-bottom:10px;">זמן:</td>'+
                  '<td class="lsttbl_info" style="padding-bottom:10px;">{5}</td>'+
                 '</tr>'+                                                                
                '</table>'+
                '<img src="files/images/ic_prdct{7}.png" style="position:absolute;left:20px;top:15px;"/>'+
                '{[this.getReady(values)]}',
    {
      getReady: function(values) {
            if(values[6]) return '<img src="files/images/ready.png" style="position:absolute;left:20px;top:20px;"/>';
            else return '';           
        }
    }
 );  
  • Like 1
  • Upvote 1
Posted

of course:

 

For two columns use this (add this to mainmodule css):

.list .x-list-item {
	display: inline-block;
	width: 50%;
} 

For 3 columns:

.list .x-list-item {
	display: inline-block;
	width: 33%;
} 

Just divide the 100% width to what you want, for 4 columns use 25% and so on.... 

Posted

Brother Mohammad, ur totally awesome brother

 

i think you should write a beginners guide to UniGui

 

thank you for all your help in this forum :)

  • Like 1
Posted

Mainmodule has no css feature. i add server module CustomCSS.

.list .x-list-item {
    display: inline-block;
    width: 50%;
}

But there was no change.

  • Like 1
  • 1 month later...
Posted

Based on this example I've put up a new customization, with several new features, and even with Floating Button, as soon as I can put more information and details

 

 

looks great :)

Posted
If you want to see a little more of what I was able to do, go to the link below, it's an application that was initially developed 100% in android studio, then I migrated part in android studio and visual studio .net, now I migrated to uniGUI and I'm happier with Result, in fact we now have 3 framework running there:
 
1. APK made in Android Studio running internal the uniGUI
2. UniGUI application running and communicating with Android Studio via J.Script
3. Gallery of images in VS C # .Net
 
I also use components from Paulo da Fenix (http://app.fenixerp.com.br/unigui/), very top and some run on mobile.
 

https://play.google.com/store/apps/details?id=br.com.angelsistemas.guiadaserra2013&hl=pt_BR

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...