CatalystX::Controller::ExtJS::ImageChooser - Controller for the ExtJS ImageChooser class
version 2.1.3
package MyApp::Controller::Images; use base 'CatalystX::Controller::ExtJS::Image::Chooser'; __PACKAGE__->config( { image_chooser_dir => 'root/static/images', image_chooser_url => '/static/images' } ); # use a JSON view # output is available at /images 1;
Example at http://www.extjs.com/deploy/dev/examples/view/chooser.html.
This module generates an object which can be serialized to a json string. The ImageChooser class of ExtJS expects the data in this way.
You can even look in subdirectories by simply adding the directory name to the url. Example: /images/subdir gives you the files from root/static/images/subdir. You cannot access directories, which are parents of the base directory.
/images/subdir
root/static/images/subdir
Moritz Onken <onken@netcubed.de>
This software is Copyright (c) 2011 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License
To install CatalystX::ExtJS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::ExtJS
CPAN shell
perl -MCPAN -e shell install CatalystX::ExtJS
For more information on module installation, please visit the detailed CPAN module installation guide.