2amigos / yii2-editable-widget

X-Editable Widget for Yii2
Other
58 stars 20 forks source link

Setting 'pk', 'id', and 'name' does not work #23

Closed mata-man closed 9 years ago

mata-man commented 9 years ago

Main attributes you should define are:

  • type - type of input (text, textarea, select, etc)
  • url - url to server-side script to process submitted value (/post, post.php etc)
  • pk - primary key of record to be updated (ID in db)
  • id or name - name of field to be updated (column in db). Taken from id or data-name attribute
  • value - initial value. Usefull for select, where value is integer key of text to be shown. If empty - will be taken from element html contents

Primary Key, ID, and Name need to be included