leikind / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
MIT License
537 stars 213 forks source link

Append default actions #260

Closed ryanfox1985 closed 8 years ago

ryanfox1985 commented 8 years ago

Hi I created a new variable with the defaults actions new, edit, delete.

also you can configure the grid: <%= grid(@array, {append_actions: [:edit, :delete]}) do |g|.... <%= grid(@array, {append_actions: []}) do |g|....

Regards.

ryanfox1985 commented 8 years ago

mmm I missed the translations of show, edit, delete.

leikind commented 8 years ago

Adding buttons has never been a goal of WiceGrid. A developer can add such a column in a minute. There is absolutely no point in adding this API, it only leads to unnecessary API boat.

ryanfox1985 commented 8 years ago

I'm starting with your library. I need so time to understand.

I haven't finished yet. This small develop simplifies my grids xD.

Regards. On Oct 18, 2015 12:05 PM, "Yuri Leikind" notifications@github.com wrote:

Adding buttons has never been a goal of WiceGrid. A developer can add such a column in a minute. There is absolutely no point in adding this API, it only leads to unnecessary API boat.

— Reply to this email directly or view it on GitHub https://github.com/leikind/wice_grid/pull/260#issuecomment-148997585.

leikind commented 8 years ago

not accepting unnecessary API bloat