PDA

View Full Version : My test in Ext2...



Valera
9 Aug 2007, 9:03 AM
http://test.f-studio.info/ext2-sampl.gif

BernardChhun
9 Aug 2007, 10:04 AM
nice you even got a recycle bin down there =P~

Skeleton
9 Aug 2007, 1:38 PM
Is this the next Windows, "Windows 7"? Just kidding :)

galdaka
10 Aug 2007, 6:02 AM
@Valera: Where you download Ext 2.0 if you not are pemium member?

thanks in advance,

BernardChhun
10 Aug 2007, 8:29 AM
maybe someone gave it to him...:-?

franklt69
10 Aug 2007, 9:24 AM
look very good a doubt the windows where appear some icons, which widget of Ext are using?
Ext.view ?

regards
Frank

Valera
10 Aug 2007, 11:57 AM
@Valera: Where you download Ext 2.0 if you not are pemium member?

thanks in advance,

Ext 2.0 I have simply downloaded by ReGet. But if someone to share last developer release - I shall be glad:) It will help me with the further work.

Valera
10 Aug 2007, 11:57 AM
look very good a doubt the windows where appear some icons, which widget of Ext are using?
Ext.view ?

regards
Frank

Ext.Template

franklt69
10 Aug 2007, 12:19 PM
Hi, Varela, could you share some code about using Ext.Template inside a window like appear in you app, or is there some example in ext2 where are using Ext.Template, maybe there is but I don't found it.


regards
Frank

Valera
12 Aug 2007, 7:38 PM
Hi, Varela, could you share some code about using Ext.Template inside a window like appear in you app, or is there some example in ext2 where are using Ext.Template, maybe there is but I don't found it.

Frank

JS

// <-- Perl
// JS

var Ac={};
Ac.Win = desktop.getWindow('AcWin');

if(!Ac.Win){


Ac.Win = desktop.createWindow({
id: 'AcWin',
title:"Веб приложения",
iconCls: 'icon-accessories',
width:320,
height:210,
x:70,
y:10,
border:true,
autoScroll : true,
minimizable : true,
maximizable : true,
closable : true,
resizable : true,
shim : false,
constrainHeader : true,
layout: 'fit',
html: '<div id="CPanel"></div>'
});

var myData = [ // this variables insert from Perl ($array)
['publisher','Менеджер публикаций','locked'],
['guestbook','Гостевая книга','unlocked'],
['quote','Цитаты','locked'],
['messenger','Системные сообщения','unlocked']
];

Ac.ds = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(myData),
reader: new Ext.data.ArrayReader({}, [
{name: 'id'},
{name: 'title'},
{name: 'cls'}
])
});
Ac.ds.load();

Ac.resultTpl = new Ext.Template(
'<div class="{cls}" d="{cls}" id="x-{id}"><div id="lock">&nbsp;</div><img src="/_res/modules/{id}/{id}.png"><br><span>{title}</span></div>'
);

var view = new Ext.View('CPanel', Ac.resultTpl, {store: Ac.ds});

view.on("click", function(vw, index, node, e){
var cls =node.getAttribute('d');
if(cls == 'unlocked') {
alert('Прога ' + node.id + ' сработала.');
// ..... function }
else {
alert('Прога ' + node.id+ ' : '+ cls +' недоступна' );
}
});


Ac.Win.setAnimateTarget(false);
Ac.Win.show();

}

else{ Ac.Win.show() }
// end js

// -> Perl


css

.icon-accessories { background-image: url( /_res/_images/shared/silk/application_view_tile.png ) !important; }
#CPanel div { width:90px; height:65px; margin: 6px 0 0 0; float:left; text-align:center; cursor:pointer !important; }
#CPanel img{ width:32px; height:32px; }
#CPanel span{ color:#15428b; }
#CPanel #lock { position: absolute; width:13px; height:13px; margin-left:55px; margin-top:20px; background: url( /_res/_images/shared/main/disabled.gif ) 0 0 no-repeat; cursor:default !important; }
* html #CPanel #lock { margin-left:27px; }
#CPanel .unlocked #lock { display:none; }
#CPanel .locked #lock { display:block; }
#CPanel .locked img { filter:Alpha(Opacity=40); -moz-opacity:0.4; opacity:0.4; }
#CPanel .locked span { color:#AEAEAE; }
#CPanel .locked { cursor:default !important; }

brian.moeskau
12 Aug 2007, 8:34 PM
Ext 2.0 I have simply downloaded by ReGet. But if someone to share last developer release - I shall be glad:) It will help me with the further work.

FYI, while we do appreciate you sharing your efforts (and it does look nice), the question was asked because premium support members have paid money to have access to the latest development branch of Ext. Part of our original discussion with the community prior to 1.0 was how to keep the project open source while still allowing us (the core Ext team) to support ourselves and work on Ext full time -- paid early access to new code branches is one of the ways we came up with to achieve this. When some people start to bypass this process, then it somewhat undermines the project for everyone. In the future, please either purchase a support subscription or else wait for the public releases of pre-release code. Certainly no one should be asking for or encouraging the sharing of pre-release code on the forums (that is actually forbidden in our pre-release license as listed in SVN).

Valera
13 Aug 2007, 7:48 AM
FYI, while we do appreciat...


Before to buy the license, usually test a product... I should test, and after to make a decision. The set example is not a commercial product, it the test of opportunities. I can tell, that in the near future I plan to buy the license.