tabalinas / jsgrid

Lightweight Grid jQuery Plugin
http://js-grid.com
MIT License
1.53k stars 353 forks source link

Introduction of new property for the fields #1421

Open joabac opened 1 year ago

joabac commented 1 year ago

Now you can define an "id" property for the tags . This allows you to attach events to the fields on edit, insert or filter, using the defined id.

the insert field alwais ends with _inser the edit field alwais ends with _edit and the filter alwaiy ends with _filter

For example: To set up a text field you should define the field like this:

{ name: "Name", type: "text", width: 150, id:"id_nombre" }

the result in HTML is:


<input type="text" id="id_name_filter">
<input type="text" id="id_name_insert">
<input type="text" id="id_name_edit">

repectively for the filter, insert and edit fields

joabac commented 1 year ago

Now you can define an "id" property for the tags . This allows you to attach events to the fields on edit, insert or filter, using the defined id.

the insert field alwais ends with _inser the edit field alwais ends with _edit and the filter alwaiy ends with _filter

For example: To set up a text field you should define the field like this:

{ name: "Name", type: "text", width: 150, id:"id_nombre" }

the result in HTML is:

<input type="text" id="id_name_filter">
<input type="text" id="id_name_insert">
<input type="text" id="id_name_edit">

repectively for the filter, insert and edit fields

joabac commented 1 year ago

Now you can define an "id" property for the tags . This allows you to attach events to the fields on edit, insert or filter, using the defined id.

the insert field alwais ends with _inser the edit field alwais ends with _edit and the filter alwaiy ends with _filter

For example: To set up a text field you should define the field like this:

{ name: "Name", type: "text", width: 150, id:"id_nombre" }

the result in HTML is:

<input type="text" id="id_name_filter">
<input type="text" id="id_name_insert">
<input type="text" id="id_name_edit">

repectively for the filter, insert and edit fields