textfield with icon/button + function

3 views
Skip to first unread message

mb

unread,
Apr 28, 2008, 11:47:22 AM4/28/08
to PHP-Ext
i will create a textfield with an icon like DateField.

to open a window for example...

how can i realize this - simple ;)

Sergei Walter Guerra

unread,
Apr 28, 2008, 11:53:28 AM4/28/08
to php...@googlegroups.com
You can use a trigger field.  The trigger field adds a small button, you should specify the css class which has the icon you want to display and should provide the action for the trigger button, but I'm afraid this should be done in raw javascript, but I'm not sure.
--
Sergei Walter
ser...@gmail.com

mb

unread,
Apr 29, 2008, 11:32:47 AM4/29/08
to PHP-Ext
ahh, i hope, this is simple ;)

i must check it now...

thx
> serg...@gmail.com

mb

unread,
Apr 30, 2008, 9:49:56 AM4/30/08
to PHP-Ext
hmm, the trigger field dosn't work..


for example:

$field = PhpExt_Form_TriggerField::createTriggerField('name',
'label');
$field->setFieldCssClass("test");


the result is a javascript error:
A[C.xtype || D] is not a constructor
Reply all
Reply to author
Forward
0 new messages