Giter Club home page Giter Club logo

extjs-image-viewer-component's Introduction

What Is It?

This is a pretty simple image viewer component that uses ExtJS 3.4. You just have to define an id of an element containing the images, and - voila! - it just works!

Component Usage Example

Ext.onReady(function() {
    // set up an id of an element that contains the images
    Ext.ux.imageViewer.register('#imagebox');
    // few additional parameters that are described below
    Ext.ux.imageViewer.slideshowDelay = 5000;
    Ext.ux.imageViewer.isAnimationEnabled = false;
});

Configurable Parameters List

  • slideshowDelay (default: 5000) - a delay between slides in a slideshow mode;
  • isAnimationEnabled (default: true) - set to false to disable the animations between slides in both modes;
  • overlayOpacity (default: 0.85) - opacity for the overlay in a normal mode;
  • fadeSpeed (default: 8) - speed for a picture to fade in;
  • borderSize (default: 10) - border width of main elements in a normal mode;
  • labelImage (default: "Изображение") - a label for the "image" word;
  • labelOf (default: "из") - a label for the "of" word;
  • hintNext (default: "Следующая") - a hint for the "Next" button ;
  • hintPrev (default: "Предыдущая") - a hint for the "Previous" button;
  • hintSlideshow (default: "Слайдшоу") - a hint for the "Slideshow" button;
  • hintSlideshowClose (default: "Закончить слайдшоу") - a hint for the "Close" button in a slideshow mode;
  • hintClose (default: "Закрыть") a hint for the "Close" button in a normal mode.

Online Example

http://justvamp.ru/image-viewer/

extjs-image-viewer-component's People

Contributors

justvamp avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.