keypoint
18 Nov 2009, 2:52 PM
Here is a control similar to that used by Microsoft Dynamics to display various entities.
For now, what it does is it displays a string (eventually as a link), together with a left side icon.
Also, a trigger provides a hook allowing you to display an item picking dialog.
The control also has a hidden input attached, allowing you to set/retrieve its value.
Demo and src: http://www.keypoint.ro/ext
There are no docs for this extension yet.
The control extends Ext.form.TriggerField, adding the following properties and methods:
icon - icon URL to display on the left side
text - text to display
url - url to link text to
disableEllipsis - by default, if the control is smaller than the text, ellipsis are displayed. This disabled that behaviour.
setText(text, url) - change the displayed text
The registered name for this control is 'picker'.
For now, what it does is it displays a string (eventually as a link), together with a left side icon.
Also, a trigger provides a hook allowing you to display an item picking dialog.
The control also has a hidden input attached, allowing you to set/retrieve its value.
Demo and src: http://www.keypoint.ro/ext
There are no docs for this extension yet.
The control extends Ext.form.TriggerField, adding the following properties and methods:
icon - icon URL to display on the left side
text - text to display
url - url to link text to
disableEllipsis - by default, if the control is smaller than the text, ellipsis are displayed. This disabled that behaviour.
setText(text, url) - change the displayed text
The registered name for this control is 'picker'.