# inputEx-library

### inputEx 0.5.1

inputEx-library > inputEx > inputEx.widget.dtInPlaceEdit
Search:
Filters Show Private Show Protected Show Deprecated

## Class inputEx.widget.dtInPlaceEdit - extends inputEx.widget.DataTable

InPlaceEditable datatable using inputEx fields

### Constructor

inputEx.widget.dtInPlaceEdit `( options )`

Parameters:
  `options <Object>` Options

#### Properties inherited from inputEx.widget.DataTable:

`datatable, element`

### Methods

#### _onCellClick

`void _onCellClick ( )`
Handling cell click events

#### initEvents

`void initEvents ( )`
Init the events

#### onAddButton

`void onAddButton ( )`
When clicking "Add" button to save a new row

#### onAddFailure

`void onAddFailure ( )`
When Failed to Add Row

#### onAddSuccess

`void onAddSuccess ( )`
Validate the new record's row : You need to call this function when you really added the item with an id Ie if you trigger an Ajax request to insert your record into database, you trigger this function only if your request didn't failed

#### onCancelButton

`void onCancelButton ( )`
When clicking "Cancel" button to cancel a new row

#### onCellClick

`void onCellClick ( )`
Public handler - When clicking on one of the datatable's cells

#### onDialogSave

`void onDialogSave ( )`
When saving the Dialog (option insertWithDialog)

#### onInsertButton

`void onInsertButton ( )`
When clicking on the "insert" button to add a new row

#### onModifyItem

`void onModifyItem ( )`
When modifying a row

#### onModifySuccess

`void onModifySuccess ( )`
When successfully modified a row

#### onRemoveFailure

`void onRemoveFailure ( )`
When failed to delete a row

#### onRemoveItem

`void onRemoveItem ( )`
When trying to delete a row

#### onRemoveSuccess

`void onRemoveSuccess ( )`
When successfully deleted a row

#### setColumnDefs

`void setColumnDefs ( )`
Modify the column definitions to add the inputEx CellEditor

#### setOptions

`void setOptions ( )`
Additional options

#### Methods inherited from inputEx.widget.DataTable:

`_onCellClick, fieldsToColumndefs, fieldToColumndef, initEvents, onCancelForm, onCellClick, onClickModify, onDialogCancel, onDialogSave, onInsertButton, removeUnsavedRecord, render, renderDatatable, renderDialog, renderShowHideColumnsDlg, setColumnDefs, setOptions, showTableOptions`

#### Events inherited from inputEx.widget.DataTable:

`Event fired when an item is added, Event fired when an item is modified, Event fired when an item is removed,`

Copyright © 2010 Eric Abouaf All rights reserved.