Resizeable Textarea
Some time ago there was an interesting posting on the OTN forum about integrating resizeable textareas into APEX (especially into the Application Builder).I thought that is a nice and useful feature, so I adapted it a little bit and integrated it into the new release of the ApexLib Framework.
Check it out on the ApexLib Feature Demonstration page.
How to use it in your application?
Just add the ApexLib hint $APEXLIB_V_RESIZE$ into the "Comment" property of your Page Item or the "Link Attributes" property of your Tabular Form column.
If you want that all your textareas in your application are resizeable, you can also add a call to
ApexLib_Browser.setTextareaPropertyin your "ApexLib - Before footer" region of page 0.
( pProperty => ApexLib_Browser.VERTICAL_RESIZEABLE
);
I have tested this feature with IE 6.0/7.0 and Firefox 2.0, please let me know if it also works with other browsers. Thanks!
Labels: APEX, ApexLib, textarea, UI improvement







10 Comments:
Hi Patrick,
i just tested this with Opera 9.10 and it works excellent.
By
Dirk Wilhelm, at 08 February, 2007 07:54
Would you consider having a resizable div as well?
By
Srepfler Srgjan, at 11 February, 2007 23:32
Hi,
what would be the exact purpose for that? How should it behave if the text/content doesn't fit anymore?
I think the best is if you write me an e-mail for details.
Patrick
By
Patrick Wolf, at 12 February, 2007 00:00
the only problem with it would be that it will break the designs of sites when the user resizes - unless you use some absolute positioning trickery
By
David G. Paul, at 12 February, 2007 08:24
Hi David,
haven't seen yet that the resize really brakes the site layout, at least not for an APEX application, because the layouting is done with tables. Or maybe my APEX layouts/pages are just too simple :-)
Patrick
By
Patrick Wolf, at 12 February, 2007 11:41
Hi!
This works great, I really love it!
I was wondering if this feature can also be used with the apex_item.textarea()
function?
Jure
By
Jure, at 26 April, 2007 09:47
Hi Jure,
add a call to ApexLib_Browser.setTextareaProperty
( pFieldId IN VARCHAR2
, pProperty IN BINARY_INTEGER
);
to your page. Note, it has to be before the ApexLib page 0 footer region.
If you need more help, contact me directly via mail.
Patrick
By
Patrick Wolf, at 26 April, 2007 18:14
Patrick
We upgraded our environment to Apex 3.1.1.00.09 and since then we seem to have lost the vertical resize capability on textareas. However the tabular columns seem to have them.
And I checked your "Demo Page" on http://apex.oracle.com/pls/otn/f?p=33231:50
It doesn't seem to have the vertical resize capability anymore. Is there a workaround for this version of Apex?
Thanks
Kannan
By
Kannan, at 27 June, 2008 14:15
Hi Patrick,
today i installed APEXLIB and i must say it works great.
But the resizeable text areas won't work. I have apex 3.1.2 and just nothing happens. Is this a known issue
Marco
By
Marco Schlicher, at 19 November, 2008 15:15
Hi Marco,
there no reports that it doesn't work. Actually apex.oracle.com is running on 3.1.2 and it looks like that the demo application works perfect. Have you used the $APEXLIB_V_RESIZE$ hint in the comment property of your page item? Or have you used the call to enable it for all pages?
Have you checked that you are not getting a Javascript error. The best is to check that in Firefox.
You can also check the HTML source code of the page if it contains a call to apexlib.UI.setVerticalResizeable
Patrick
By
Patrick Wolf, at 19 November, 2008 19:58
Post a Comment
<< Home