Static methods

  • parseNames(fieldName)

This function accepts a string containing a JS field name (the id of an HTML element) and cracks it into its constituent components: the list name, index, and property. The result is an object with three attributes, property and listName (which are null if missing), and position, which is actually a function that takes the current list position as an integer argument. The reason for this is to allow the calculation of the current position (no index) and a fixed index. If the list fragment is missing the listName and position are both null.