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

📄 widget.js

📁 ProjectPier 源码 很好的项目管理程序
💻 JS
字号:
/** * MoreOptions - this widget will transform given fieldset into a block that * can be collapsed and show brief info about extended content * * @param {String} context_id * @param {String} block_id * @constructor */App.widgets.MoreOptions = function(fieldset_id, onExpandHandler, onCollapseHandler, auto_transform) {  this.fieldset_id = fieldset_id;  this.on_expand_handler = onExpandHandler;  this.on_collapse_handler = onCollapseHandler;  if(auto_transform) this.transform();};App.widgets.UserBoxMenu.prototype = {    fieldset_id         : null,  on_expand_handler   : null,  on_collapse_handler : null,  fieldset            : null,  title               : '',  short_info          : '',    transform: function() {      },    /**   * This function will actualy build the DIV and all of its subelements. We   * can chose if we want to set it as expended or as collapsed from the start   *   * @param <String> title   * @param <String> info   * @param <String/HTMLElement/Array> content Element(s) that are found after    *   legend element in the fieldset   * @param <Boolean> expended   * @return   */  build: function(title, info, content, expanded) {      },    expand: function() {      },    collapse: function() {      },    getTitle: function() {    return this.title;  }    setTitle: function(new_value) {      },    getShortInfo: function() {    return this.short_info;  },    setShortInfo: function(new_short_info) {      }  };

⌨️ 快捷键说明

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