diff --git a/version-2/Readme.markdown b/version-2/Readme.markdown index 3e057ba..f8e958b 100644 --- a/version-2/Readme.markdown +++ b/version-2/Readme.markdown @@ -115,6 +115,10 @@ and avoid collisions with other libraries: | separator | datagrid-range-separator | | checkboxes | datagrid-enum-checkboxes | +All classes are now explicitly assinged inside datagrid partials. +[Modify built-in partials](https://github.com/bogdan/datagrid/wiki/Frontend#modifying-built-in-partials) +if you want to change them. + Diff for [built-in partials between V1 and V2](./views.diff) See [a new built-in CSS file](../app/assets/datagrid.css). @@ -254,10 +258,11 @@ instead of classes for meta information from backend. Therefor built-in partials now generate data attributes by default instead of classes for column names: -Diff for [built-in partials between V1 and V2](./views.diff) ### Filters +Version 1: + ``` html
@@ -276,6 +281,8 @@ Version 2:
``` +Diff for [built-in partials between V1 and V2](./views.diff) + ### Columns Version 1: @@ -318,14 +325,16 @@ If you still want to have an HTML class attached to a column use `class` column column(:name, class: 'short-column') ``` +Renders: + ``` html Name ... John ``` -If you want to change this behavior completely, -modify [built-in partials](https://github.com/bogdan/datagrid/wiki/Frontend#modifying-built-in-partials) +[Modify built-in partials](https://github.com/bogdan/datagrid/wiki/Frontend#modifying-built-in-partials) +if you want to change this behavior completely. ## Inherit Datagrid::Base