Ext JS - Learning Center

Sandbox:Examples

From Learn About the Ext JavaScript Library

Jump to: navigation, search

Sandboxing a Forum Example

Summary: This example makes a number of things evident
Author: jsakalos / EXTJS Forum / bdt
Published: 13MAY2007
Ext Version: 1.1
Languages:

1st cut ... please don't smash. --Bentremblay-2425 18:09, 9 June 2007 (CDT)

 

NB: I need to figure out whether to link images from forum or upload them here.

Just Look!

Originally Ext JS Forums > Examples and Extras > "Just look!"; jsakalos 05-13-2007 08:06 PM


 

jsakalos 05-13-2007 08:06 PM

Just look !
 


ext-ps-01.png

ext-ps-02.png

ext-ps-03.png

ext-ps-04.png



dnixon: 05-14-2007 10:57 AM

Looks really good. Can you post a snippet on how the menus are done with Mnemonics and possibly Accelerators(?). After I hacked apart the menu example my menus still had the down arrow on each top level menu item.
jsakalos 05-14-2007 11:01 AM

What you see in pictures are not menus in fact they are ordinary toolbar buttons instead. Yes, I can post some code if you have a specific problem and I think posting of a code fragment could help you.
Hatejs: 05-14-2007 09:59 AM

Toolbar align right

can you tell me how to set the toolbar function align right?
jsakalos: 05-14-2007 10:02 AM

PHP Code:

// add your left aligned buttons here  

// add greedy spacer e.i. subsequent buttons will be aligned right
Ext.get(Ext.get(tb.addSpacer().getEl()).dom.parentNode).setStyle('width''100%');

// add your right aligned buttons here 


galdaka: 05-14-2007 10:51 AM

Excellent work! :)


1) How to calculate a number of childNodes in tree?

2) What do you think about use this search method instead of your "filter": <a href="http://extjs.com/forum/showthread.php?t=5397" target="_blank">http://extjs.com/forum/showthread.php?t=5397</a>

Thanks in advance
jsakalos 05-14-2007 10:59 AM

Re 1: It's server side calculated. The text of item delivered from server already includes this number.


Re 2: I WAS inspired by that link. I only didn't want to use quick search rather I decreased the pageSize.

Before Ext I'd done "grid" filtering such a way that each column had empty field above it to type a filter text and also there was a possibility for user to give a name to a filter and save it.

This way he/she didn't need to type repetitive filters again.

The filtering I use now is enough for this Privilege System but as soon as I need more clever one I'll either do one myself or I'll try to coordinate with Jack (at least ideas).

Thanks again.
davidelias 05-14-2007 11:52 AM

Quote:

Originally Posted by jsakalos (Post 30860)

PHP Code:

// add your left aligned buttons here  

// add greedy spacer e.i. subsequent buttons will be aligned right
Ext.get(Ext.get(tb.addSpacer().getEl()).dom.parentNode).setStyle('width''100%');

// add your right aligned buttons here 


This will also work, and is a little lightweight... i guess
Code:

Ext.fly(tb.addSpacer().getEl().parentNode).setStyle('width', '100%')

  • This page was last modified 00:34, 11 June 2007.
  • This page has been accessed 3,098 times.