The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CatalystX::Controller::ExtJS::ImageChooser - Controller for the ExtJS ImageChooser class

VERSION

version 1.124000

SYNOPSIS

  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.

DESCRIPTION

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.

AUTHOR

Moritz Onken <onken@netcubed.de>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Moritz Onken.

This is free software, licensed under:

  The (three-clause) BSD License