随笔分类 -  handsontable

like excel jquery plug-in
handsontable 排序问题
摘要:排序是表格的基础功能,handsontable也会支持。有时需求会很复杂,需要自定义排序,或者调用其他排序方法;自定义排序,比较复杂,没做过;今天要用的是调用R中的排序方法。有两个事件beforeColumnSort 和 afterColumnSort;有用的是前者,index,order参数,但是... 阅读全文
posted @ 2015-11-02 23:17 j.w 阅读(2322) 评论(0) 推荐(0)
handsontable 问题
摘要:碰到问题了,去官网上找community:http://docs.handsontable.com/0.16.1/tutorial-quick-start.html1、描述:把handson table放在bootstrap tab中,首次没有激活,table没有正常显示。原因:这种情况下,tabl... 阅读全文
posted @ 2015-08-20 09:58 j.w 阅读(1675) 评论(0) 推荐(0)
handsontable-mobiles
摘要:适配移动端:文档不完整,现在只能适配ipad4 阅读全文
posted @ 2015-07-27 20:31 j.w 阅读(163) 评论(0) 推荐(0)
handsontable-integrations
摘要:jquery:可以通过$选择元素bootstrap:使用bootstrap,有些样式需要重置backbone:整合 阅读全文
posted @ 2015-07-27 20:27 j.w 阅读(136) 评论(0) 推荐(0)
handsontable-utilities
摘要:搜索值鼠标右键讲了四个功能:1、row header是否可以右键(rowheader:true);2、删除右键列表的某些值(通过数组定义);3、自定义右键列表和功能(callback,item两个属性);4、copy paste功能自定义按钮:选择某个元素,删除某行评论:类似tips 阅读全文
posted @ 2015-07-27 20:25 j.w 阅读(162) 评论(0) 推荐(0)
医疗数据分析
摘要:医疗数据分析 项目描述:对医疗数据进行管理 查看 分析。 用到的技术: 使用jstree对数据进行树形菜单管理;使用handsontable以表格的形式呈现数据; 后台使用docker php apache mysql R 前端使用jquery bootstrap 熟悉了Linux的操作 阅读全文
posted @ 2015-07-26 23:56 j.w 阅读(449) 评论(0) 推荐(0)
handsontable-appearance
摘要:条件格式化自定义边框 阅读全文
posted @ 2015-07-20 11:17 j.w 阅读(154) 评论(0) 推荐(0)
handsontable-cell type
摘要:在单元格中呈现自定义的元素:不能使用html元素var data = [ { title: "Professional JavaScript for Web Developers", description: "This book provides a d... 阅读全文
posted @ 2015-07-20 11:15 j.w 阅读(1319) 评论(0) 推荐(0)
handsontable-cell features
摘要:数据验证:在columns中设置validator,进行同步或异步验证,还可添加beforeValidate, afterValidate函数,allowInvalid:true可以不用验证var people = [ {id: 1, name: {first: 'Joe', last: ... 阅读全文
posted @ 2015-07-19 15:05 j.w 阅读(1790) 评论(1) 推荐(0)
handsontable-常用配置
摘要:冻结单元格var //自动创建数据 myData = Handsontable.helper.createSpreadsheetData(100, 50), container = document.getElementById('example1'), positions ... 阅读全文
posted @ 2015-07-19 09:17 j.w 阅读(4509) 评论(0) 推荐(0)
handsontable-developer guide-cell function
摘要:renderer展示的数据不是来自于数据源,而是先把DOM和其他信息传给renderer,然后展示。//五种展示函数TextRenderer: defaultNumericRendererAutocompleteRendererCheckboxRendererPasswordRenderer自己不能... 阅读全文
posted @ 2015-07-18 10:21 j.w 阅读(755) 评论(0) 推荐(0)
handsontable-developer guide-cell editor
摘要:单元格编辑cell editorrenderer:展示数据;editor:改变数据;renderer用一个函数表示;后者有一系列的操作,需要用class来表示;EditorManagerhandsontable()--init()--EditorManage实例化1、选择editorcolumns中... 阅读全文
posted @ 2015-07-18 10:18 j.w 阅读(1505) 评论(0) 推荐(0)
handsontable-developer guide-cell type
摘要:单元格类型:这里有很多没见过的用法,得好好总结一下//预定义的类型TextNumericCheckboxDateSelectDropdownAutocompletePasswordHandsontable in HandsontableCustomvar data = [ {id: 1, na... 阅读全文
posted @ 2015-07-18 10:17 j.w 阅读(483) 评论(0) 推荐(0)
handsontable-developer guide-setting options,callback
摘要:1、cell数组cell: [ {row: 0, col: 0, readOnly: true}]2、cells函数cells: function(row, col, prop){ var cellProperties = {}; if(row === 0 && col === 0){ cellP... 阅读全文
posted @ 2015-07-18 10:16 j.w 阅读(339) 评论(1) 推荐(0)
handsontable-developer guide-load and save
摘要:不过handsontable不能用jquery取对象var $$ = function(id) { return document.getElementById(id); }, container = $$('example1'), exampleConsole = $$('examp... 阅读全文
posted @ 2015-07-18 10:15 j.w 阅读(594) 评论(0) 推荐(0)
handsontable-developer guide-data binding,data sources
摘要:数据绑定:1、表格中得数据是引用了数据源中的数据:表格中数据改变,数据源中得数据也改变;数据源中得数据改变,通过render方法,表格中的数据也改变;2、如果想把数据源中的数据和表格中的数据分开:JSON.parse(JSON.stringify(data2))3、保存之前clone表格,使用aft... 阅读全文
posted @ 2015-07-18 10:14 j.w 阅读(551) 评论(0) 推荐(0)
handsontable 概述
摘要:很像excel的jquery插件。关于它的中文资料不多,自己只能看看英文的了。记录如下: developer guide 阅读全文
posted @ 2015-07-11 23:37 j.w 阅读(503) 评论(0) 推荐(0)