| CatalystX-ExtJS documentation | view source | Contained in the CatalystX-ExtJS distribution. |
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.
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
| CatalystX-ExtJS documentation | view source | Contained in the CatalystX-ExtJS distribution. |