I was wondering if someone could give me a clue as to the
best way to do this -
I want to add a feature to my system whereby if a user double
clicks on any textarea field in the whole system a larger text
window appears in a separate popup to show a bigger view of the
Obviously I could go through and add an event listener to all
text area fields along with code to handle the opening of the big
text window. However, there must be a better way than adding the
listener for every single text area field.
Can anybody give me a clue as to the best way - maybe a
custom textarea component of maybe can you add an event listener in
a CSS file or skin ?
Create a custom component with two states, one state with
just the small TextArea displaying, and the other state with the
small and the large displaying. Then you simply create instances of
this custom component, and each works as expected with no extra