Hello again,
I've been working on a mixin that will count the characters typed into a
TextField or TextArea, as they are typed. It works fine but among other
things, I want to make it possible to control where and how user
feedback is displayed. My mixin just implements the counting logic, but
it should be possible for a user to use this mixin and configure it to
display a counter, implement text-length restriction (something not
possible for html text areas without JS), and implement notification.
How should I go about doing this? I could easily have a domId parameter
on the mixin that would receive the counter notifications, but I'd
rather make it easy for one to plug in their own logic and receive these
notifications as events. Obviously that part would happen in client-side
JS, but I want the framework to coordinate the two (ensuring the
components exist, etc). Does anyone have any thoughts on this?
sincerely,
chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]