Web Development with jQuery®

(Elliott) #1

(^490) ❘ APPENDIX A EXERCISE ANSWERS
bapp01.indd 02/18/2015 Page 490
CHAPTER 16



  1. The minDate and maxDate options.

  2. The yearRange option. Example value: "1900:2020"

  3. The changeMonth and changeYear options.

  4. The dateFormat option.

  5. Yes. By providing an array of the Spanish translated weekdays to the dayNames, dayNamesMin,
    or dayNamesShort options.

  6. Use the firstDay option to provide the starting day of the week. Sunday is number 0 and
    Saturday is number 6. For example, to change the starting day to Tuesday, you would set
    firstDay : 2.


CHAPTER 17



  1. The modal option with positioning the
    with class name ui-widget-overlay. It must be
    positioned to take up the entire window in front of the document’s content but behind the
    opened dialog.

  2. Set the autoOpen option to false.

  3. By calling dialog('open').

  4. By calling dialog('close').

  5. By setting the draggable and resizing options to false.

  6. The show option with an animation preset such as 'explode'.


CHAPTER 18



  1. The active tab with a value indicating the tab to display, offset from zero.

  2. The class names are ui-tabs-active and ui-tabs-hover.

  3. Add a new tab that references the content you want to load in the href attribute of the
    element. The jQuery Tabs plugin takes care of the rest.

  4. The show and hide options.


CHAPTER 19



  1. No sorting occurs until you explicitly sort by a header unless you specify the sortList option,
    which specifi es how default sorting should be handled.

  2. You would use the sortMultiSortKey option with the value 'ctrlKey'.

  3. You use the cssHeader, cssAsc, and cssDesc options to specify custom class names.


http://www.it-ebooks.info

Free download pdf