Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

panel.js 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Copyright (c) 2010, Yahoo! Inc. All rights reserved.
  3. Code licensed under the BSD License:
  4. http://developer.yahoo.com/yui/license.html
  5. version: 3.4.0
  6. build: nightly
  7. */
  8. YUI.add('panel', function(Y) {
  9. /**
  10. * Provides a Panel widget, a widget that mimics the functionality of a regular OS window.
  11. * Comes with Standard Module support, XY Positioning, Alignment Support, Stack (z-index) support,
  12. * modality, auto-focus and auto-hide functionality, and header/footer button support.
  13. *
  14. * @module panel
  15. */
  16. /**
  17. * A basic Panel Widget, which can be positioned based on Page XY co-ordinates and is stackable (z-index support).
  18. * It also provides alignment and centering support and uses a standard module format for it's content, with header,
  19. * body and footer section support. It can be made modal, and has functionality to hide and focus on different events.
  20. * The header and footer sections can be modified to allow for button support.
  21. *
  22. * @class Panel
  23. * @constructor
  24. * @extends Widget
  25. * @uses WidgetStdMod
  26. * @uses WidgetPosition
  27. * @uses WidgetStack
  28. * @uses WidgetPositionAlign
  29. * @uses WidgetPositionConstrain
  30. * @uses WidgetModality
  31. * @uses WidgetAutohide
  32. * @uses WidgetButtons
  33. * @param {Object} object The user configuration for the instance.
  34. */
  35. Y.Panel = Y.Base.create("panel", Y.Widget, [Y.WidgetStdMod, Y.WidgetPosition, Y.WidgetStack, Y.WidgetPositionAlign, Y.WidgetPositionConstrain, Y.WidgetModality, Y.WidgetAutohide, Y.WidgetButtons]);
  36. }, '3.4.0' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain', 'widget-modality', 'widget-autohide', 'widget-buttons']});