Giter Site home page Giter Site logo

yangxin1994 / html-table-editor-resizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevefoxuser/html-table-editor-resizer

0.0 0.0 0.0 404 KB

表格插件拖动,合并,编辑插件。Merge cells, split cells, drag to resize table , a very usefull table plugin with no dependency.

JavaScript 98.71% HTML 1.29%

html-table-editor-resizer's Introduction

原生javascript表格插件,可以拖动改变大小,合并单元格等

Demo

安装

npm install

npm run dev

查看 localhost:8080

三种方式 初始化表格

import TableEditor from "./tableEditor"
// better to replace document.body with your own div container
// 最好把body换成某个空的div容器,这个div不要放其他元素
const t = new TableEditor()

t.Create(10, 10, document.body)

// or
t.CreateFromString('<table><tr><td></td><td></td></tr><tr><td></td><td></td></tr></table>',document.body)

// or
t.CreateFromElem(document.querySelector('#YourTable'),document.body)

// do some edit .....

// 编辑完表格以后获取编辑后的结果
// get the edited table
console.log(t.GetTable())
console.log(t.GetTableStr())

卧槽,放了这么久了,真就一个屎大都没有啊

html-table-editor-resizer's People

Contributors

stevefoxuser avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.