1.0.6 • Published 5 years ago

s25-hot v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Installation

$ npm install --save s25-hot

Usage

import { Hot } from 's25-hot'
//может использоваться любая версия, но тут новая
import Handsontable from 's25-hot/src/handsontable' 

const hot = new Hot(Handsontable)

hot.init(document.querySelector('.selector'), config) // стандартный hot config
hot.loadData(getData())
hot.onChange(() => $saveBtn.prop('disabled', false))

// Редактирование
$editBtn.on('click', () => {
  hot.setEditMode()
})

// Отмена
$cancelBtn.on('click', () => {
  hot.cancelEditMode()
})

// Сохранение
const changes = hot.getChanges()
save(changes)
hot.setViewMode()
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago