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


CatalystX-ExtJS documentation  | view source Contained in the CatalystX-ExtJS distribution.

Index


NAME

Top

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

VERSION

Top

version 2.1.3

SYNOPSIS

Top

  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

Top

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

Top

Moritz Onken <onken@netcubed.de>

COPYRIGHT AND LICENSE

Top


CatalystX-ExtJS documentation  | view source Contained in the CatalystX-ExtJS distribution.