View
 

Core

Page history last edited by Jörn Zaefferer 2 years ago

1 - Description:

 

This page describes and specifies features provided by ui.core.js, or links to more specific pages.

 


 

2 - Visual Design:

 

None.

 


 

 

3 - Functional Specifications/Requirements:

 

Implemented:

  • Widget Factory
  • $.ui.plugin
    • add
      • specifies a plugin extension
    • call
      • triggers plugin extensions
    • an approach to extension of plugins, currently deprecated, without a viable alternative (the recommended proxy pattern has too many drawbacks, too)
  • $.ui.contains
    • accepts two DOM elements a and b and compares their positions using (browser specific) methods, returns true when b is contained within a
    • jQuery core has this method, too, but doesn't expose it (related ticket)
  • $.ui.hasScroll
    • ?
  • $.ui.isOverAxis
    • ?
  • $.ui.isOver
    • related to isOverAxis, both seem to be helper methods for dimensional calculations
  • $.ui.keyCode
    • enumeration of key codes like UP, ESCAPE etc.; must be used in key event handlers instead of the numerical values
  • $.fn._focus
    • reference to the original $.fn.focus method
  • $.fn.focus
    • overwrites original $.fn.focus method to accept a number parameter as the first argument (shifting the callback to the second argument) to interleave the focus-event handler with used-defined delay (via setTimeout)
  • $.fn.remove
    • extends the original remove method to trigger a "remove" event on each removed element
    • related features/functionality?
    • here the original remove method is stored in a private variable - inconsistent with $.fn._focus
  • $.fn.enableSelection
    • ?
  • $.fn.disableSelection
    • ?
  • $.fn.scrollParent
    • ?
  • $.expr[':'].data
    • ?
  • $.expr[':'].focusable
    • ?
  • $.expr[':'].tabbable
    • ?
  • $.fn.zIndex
    • to tackle stacking issues which will become more prevalent as the UI library grows and more complex components emerge.
    • will be able to calculate true stacking level based on a target elements z-index or its parents if not set. 

 


 

4 - Markup & Style:

 

none

 


 

5 - Latest version of plugin:

 

http://jquery-ui.googlecode.com/svn/trunk/ui/ui.core.js

 


 

6 - Open issues being discussed

 

$.ui.plugin, $.ui.contains and $.fn.remove have some issues, see above. A lot of specification is missing, especially for $.ui.mouse.

 


 

 

 

 

Comments (0)

You don't have permission to comment on this page.