2amigos / yii2-editable-widget

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

Added allowedAttributes to Editable Action #29

Closed sebathi closed 7 years ago

sebathi commented 8 years ago

Some times you use it as a fast edit and don't want to have all items to be updated. only the ones you are changing. It is faster than creating a scenario.

tonydspaniard commented 8 years ago

@sebathi thanks... sample usage and result?

sebathi commented 8 years ago

It will only let you update the attributes you add to the variable. for example:

'action'=>[ 'class' EditableAction::className(), 'allowedAttributes'=>['userId', 'notes', 'stateId'], .... ]

That will let you only update these three attributes of the model.

sebathi commented 8 years ago

?

sebathi commented 8 years ago

??

sebathi commented 7 years ago

Great!!

sebathi commented 7 years ago

Can you create a version? I can remove my fork on my project now ;)

tonydspaniard commented 7 years ago

@sebathi I did. I am very sorry for the delay. Is version 1.0.0

tonydspaniard commented 7 years ago

Wasn't able to fully test it with latest Yii2 changes. Please, let me know if all works correctly Thanks