Handsontable General Method

Source: Internet
Author: User

1.clear (): Erase data


2.createCol (index,amount,createautomatically): Adding columns

index : Column index, amount: Total number of columns added,createautomatically: As a number

Removecol (index,amount): Delete Column

CreateRow (Index): Add line

Removerow (index,amount): Deleting rows

3.get (Row,prop): Gets the value of a cell based on the line number and property index

GetAll (): Get all the data

Getcopyable (Row,prop): Gets the value of a single cell based on the line number and property index

Getcopyabletext (Start,end): Gets the value of the selected position

SATRT: Start selection of the Position object, end: Ends the selected position Object

GetRange (start,end,destination): Obtaining data by coordinates

SATRT: Start selection of Position object, end: End selected Position object, Destionation: Destination map index

GetText (Start,end): Gets the data for the target location

4.set (Row,prop,value,source): Sets the value of a single cell

Row : Line index, prop: column index, Value: New value, Source:hook plug -in provider


5.spliceCol (Col,index,amount): Add or Remove column data

col: Column index, index: Starting to change the array indexes, amount: Changing the number of data

Splicerow (Row,index,amount): Add or delete row data

Row : Line index, index: array index starting to change, amount: Changing the number of data

Handsontable General Method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.