Wijmo UI for the Web
Quick Start
Show AllShow All
Hide AllHide All

The following quick start is aimed at getting you quickly up and running with the wijgallery widget. In the quick start you'll create a Web page, add the wijgallery widget, and customize the appearance and behavior of the widget. Complete the following steps:

  1. To create a new HTML page in your favorite text editor, add the following code and save the document with an .html extension.

    Drop down and copy markup to paste in Notepad

  2. Add links to the dependencies to your HTML page within the <head> tags. Find the latest dependencies in the content delivery network (CDN) file at wijmo cdn.

    Drop down and copy references to paste inside the head tags

    This adds jQuery and Wijmo references as well as theme and CSS links.

  3. Place the following markup within the <body> tags.

    Drop down and copy markup to paste inside the body tags

    The <div> HTML element is what creates the widget. The <div> element's id option is set to 'gallery1', which we call in jQuery to initialize the widget.

  4. Within the <head> tags, below the references, add the following markup to set the size of the gallery widget.

    Drop down and copy markup to paste inside the head tags

    This markup sets the width of the widget.

  5. Within the <head> tags, below the style markup, add the following script to initialize the jQuery widget.

    Drop down and copy markup to paste inside the head tags

    The script sets the size and number of thumbnail images.

  6. Save and close your HTML file and open it in a browser. The wijgallery widget appears like the following:

See Also

Reference

 
Support Options