⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 这是YUI的源码及相关示例。里面有很多很炫的Javascript效果。
💻
📖 第 1 页 / 共 2 页
字号:
to represent Record order within a RecordSet instance. TR elements are assignedDOM ID strings that are *unrelated* to Record instance IDs and Record indexes. Beaware that DOM element IDs will get reused when sorting and paginating. Furthermore,Column instances are assigned globally unique and immutable ID strings(no longer numbers). Column indexes are numbers that are mutable and representColumn order within a ColumnSet instance. Please refer to the API documentationfor details on when to use Record/Column instance IDs, DOM element IDs, andRecord/Column index numbers.* Enabling row or cell selection no longer breaks clicks on links and form elements.*** version 2.3.0 **** DataSource requests over XHR no longer automatically insert a "?" in the URIsbetween the host and the query. Implementers should explicitly include thequestion mark if it is required by your server. Please refer to the XHRexamples for implementation details.* Applied new skinning model.* The MVC model has been stabilized and many APIs have been renamed or changedquite a bit from the previous version. Implementers should now only useDataTable APIs and not use any Record or RecordSet APIs to add/delete/updaterows, Records, and DOM elements. RecordSet synchronization will be managed foryou under the hood. For example, myDataTable.addRow() now accepts an objectliteral of data and will create a Record and update the DOM. CallingmyDataTable.deleteRow() will delete the appropriate Record and update the DOM.Please refer to the API reference for full details on property and method names andargument signatures. When possible, Logger messages will provide deprecation warnings,so implementers upgrading from the previous version are encouraged to use the debugbuild of DataTable.* The DataTable constructor signature has changed in 2 major ways:1) Do not pass in a ColumnSet instance. Instead, pass in an array of Columndefinitions directly, and a ColumnSet instance will be created for you under the hood.2) In the progressive enhancement case, first instantiate a DataSource pointingto your HTML TABLE element, and then pass in that DataSource instance to yourDataTable constructor. Please refer to the progressive enhancement examplefor implementation details.* DataTable now extends Element, which has become a required dependency. Implementersshould now use the myDataTable.set("propertyName", newValue) syntax instead of directdot notation of any properties.* The underlying pagination architecture and API have been revised. Specifically,the property paginator has been deprecated in favor of paginated,paginatorOptions has been deprecated in favor of paginator, and related eventsand method names have been changed. Please see the pagination examples forimplementation details. Please refer to the API reference for full details onnew property and method names and argument signatures.* There is a known pagination bug where changing the rows-per-page dropdown whileon a page number that is out of bounds of the new range, the current page valuefails to get reset to an appropriate default value.* There is a known pagination bug where custom containers are ignored.* There is a known bug where row and cell selections are not tracked correctly inpaginated DataTables.* The underlying editing architecture and API have been revised. Specifically, theColumnEditor class is no longer used, the method editCell() has been deprecatedin favor of showCellEditor(), and the Custom Event "cellEditEvent" is now"editorSaveEvent". Please see the inline editing example forimplementation details. Please refer to the API reference for full details onproperty and method names and argument signatures.* There is a known issue where the built-in date editor throws a JavaScriptexception when encountering a null or non-Date value. Implementers using the built-indate editor should validate for type Date and avoid null values in these datafields.* The underlying sort architecture, including YAHOO.util.Sort, has been modifiedto accept a single sort function rather than separate functions for ascendingand descending sorts.* Scrolling a DataTable with an active Cell Editor will cancel the edit toto prevent the Cell Editor's position from getting out of sync with itsassociated TD element.* The following static methods are executed in the scope of the DataTableinstance: DataTable.validateNumber(), DataTable.formatButton(),DataTable.formatCheckbox(), DataTable.formatCurrency(), DataTable.formatDate(),DataTable.formatDropdown(), DataTable.formatEmail(), DataTable.formatLink(),DataTable.formatNumber(), DataTable.formatRadio(), DataTable.formatText(),DataTable.formatTextarea(), DataTable.formatTextbox().* The following DataTable APIs have changed:- The following static constants have been removed: CLASS_CURRENCY, CLASS_CURRENTPAGE,CLASS_DATE, CLASS_EMAIL, CLASS_FIRSTLINK, CLASS_FIRSTPAGE, CLASS_HEADCONTAINER,CLASS_HEADRESIZER, CLASS_HEADTEXT, CLASS_HIGHLIGHT, CLASS_LASTLINK, CLASS_LASTPAGE,CLASS_LINK, CLASS_NEXTLINK, CLASS_NEXTPAGE, CLASS_NUMBER, CLASS_PAGELINK,CLASS_PAGELINKS, CLASS_PAGESELECT, CLASS_PREVLINK, CLASS_PREVPAGE, CLASS_SORTEDBYASC,CLASS_SORTEDBYDESC, CLASS_STRING.- The following static constants have been added: CLASS_ASC, CLASS_BUTTON,CLASS_DEFAULT, CLASS_DESC, CLASS_DISABLED, CLASS_DROPDOWN, CLASS_HEADER,CLASS_HIGHLIGHTED, CLASS_LABEL, CLASS_NEXT, CLASS_PAGE, CLASS_PREVIOUS,CLASS_RESIZER- The property contextMenu is no longer supported.- The property dataSource has been deprecated in favor of the accessor methodgetDataSource().- The property fixedWidth is not fully supported.- The property sortedBy now defines key instead of colKey.- The property rowSingleSelect has been deprecated in favor of selectionMode.* The following Record APIs have changed:- Record data values are no longer accessible with oRecord[key] or oRecord.key.Implementers should now use oRecord.getData(key).- The property yuiRecordId has been deprecated in favor of the accessor methodgetId().* The following RecordSet APIs have changed:- The method getRecordBy() is not implemented.- The method insert() has been deprecated in favor of addRecord() and addRecords().- The method replace() has been renamed replaceRecords().- The method sort() has been deprecated in favor of sortRecords().* The following Column APIs have changed:- Column type has been deprecated in favor of formatter. In your Columndefinitions, please change type:"date" to formatter:"date", type:"currency" toformatter:"currency", etc.- The property parser is no longer used. Implementers should use the staticDataSource methods DataSource.parseDate(), DataSource.parseNumber(), andDataSource.parseString() for type conversion functionality.- The methods getColSpan() and getRowSpan() have been renamed to getColspan()and getRowspan().- The return value for the method getId() has been changed.- The following methods are no longer implemented: parse(), parseCheckbox(),parseDate(), parseNumber(), parseSelect(). Implementers should now use aDataSource with a data type of HTML TABLE element.- The showEditor() method is no longer implemented. Implementers should now usethe DataTable method showCellEditor().- All static formatter functions have been moved from the Column class to theDataTable class.* The DataTable method getColumn() has a known issue where instead of acceptinga Column's key index value, the method accepts a Column's ID value. Until thisissue is fixed, implementers can use the following workaround:    // Instead of this:    // var oColumn = myDataTable.getColumn(0);    // Use this:    var oColumn = myDataTable.getColumn(myDataTable.getFirstTrEl().cells[0].yuiColumnId);*** version 2.2.2 **** Removed workaround for a fixed Dom.getXY() bug that was causing a positioningproblem for inline editors on scrolled pages.**** version 2.2.1 **** Changed default pagination from enabled to disabled. Must set propertypaginator to true to enable built-in client-side pagination.* Removed deleteSelectedRows() and added deleteRows().* Deprecated properties isEmpty and isLoading, and methods showLoadingMessage(),showEmptyMessage(), and hideTableMessages(). Implementers should now useshowTableMessage() and hideTableMessage().* Deprecated methods paginateRows() and onDataReturnPaginateRows(). Implementersshould now use popualateTable() and onDataReturnPopulateTable().* Deprecated pagination properties pageCurrent, rowsPerPage, startRecordIndex,pageLinksLength, rowsPerPageDropdown, pageLinksStart, and pagers.* Fixed unclickable links.* Fix to support data values of 0 (zero).* Fixed broken validation in multiple places when the value 0 (zero) is passedin as an argument.* Fixed incorrect month output in formatDate().* Fixed broken empty message when there are zero rows.* Allow implementers to use data with field name "id".* Fixed Column resizeability in -min builds.* Fixed Column sorting of null, undefined, and empty values.* Fixed Column sorting of nested headers.* Fixed paginator dropdowns to stay in sync when paginating.* Fixed rowSingleSelect for paginated DataTable.* Fix for currency values with more than 2 decimal places.* Fixed broken TR ID assignments in replaceRows().* Fixed Opera UI artifacting problem when repaginating via dropdowns.* Fixed orphaned ColumnEditor during pagination or other de facto blurinteraction. Data gets saved.* Extracted non-foundational CSS for scrollable DataTables to make UI easier tocustomize.* Updated methods select() and unselect() to also accept an array of elements oran array of strings.* Improved row selection behavior to model the desktop paradigm (i.e., requireCONTROL and/or SHIFT keys to multi-select).* Tweaked inline editing for better Mac performance.* Refactored pagination code to be easier to implement, configure, and extend.* Accept an error boolean from DataSource in case of data error and show errormessage.* The CustomEvent rowDeleteEvent is now only fired once per deleted row andits argument signature has been modified.* Added selectRow(), rowSelectEvent, unselectRow(), rowUnselectEvent, rowAddEvent,and rowUpdateEvent.* Added constants CLASS_TABLE, CLASS_EDITOR, CLASS_FIRST, and CLASS_LAST.* Added ColumnEditor class moveContainerTo().* Add IDs and class hooks to TABLE element and ColumnEditor's container DIV.* Add class hooks to first and last TR elements.* Added hook to doBeforeLoadData() for the not-from-markup constructor flow.* Added properties paginator and paginatorOptions, as well as method getPaginator().* Added methods saveEditorData() and cancelEditorData().* Improved type checking with YAHOO.lang.**** version 2.2.0 **** Beta release.* Caption is not supported when scrolling is enabled.* Resizeability is not supported for fixed-width DataTables.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -