-
Grid, Tree: use the
attributes
config option if you need to configure what attributes are shown in both the grid and its forms. Thecolumns
config option now only takes effect on grid, and it doesn't modify the layout of its forms. -
edit_inline
config option is gone (see the newediting
option). -
Provide full association name using the double-underscore notation in locales (e.g.
author__name
instead of justauthor
). This reverts the change introduced in 1.0.0.0.
-
Grid: new
paging
andediting
options allow for more flexible combinations of different editing and paging modes. -
Tree: fixed date and datetime columns in some browsers.
-
Tree: implement
scope
config option for Tree. -
Fix bug that allowed editing grids in inline mode by dblclicking the rows.
-
Fix bug that allowed toggling checkbox in grids with prohibited update.
-
Explicitly speficying grid actions will no longer display the buttons, whose actions are not permitted.
-
Base classes of main componens have been renamed from
Netzke::Basepack::{Grid|Form|Tree|Window|Viewport}
toNetzke::{Grid|Form|Tree|Window|Viewport}::Base
. -
Netzke::Basepack::TabPanel
andNetzke::Basepack::Accordion
have been removed. The only purpose for them was dynamic loading of child components, which didn't prove that useful.
-
strong_default_attrs
config option has been renamed tostrong_values
. -
attr_type
config option for columns/fields has been renamed totype
. -
The new
attribute
DSL method and the accompanyingattribute_overrides
config option allow reconfiguring the way specific model attributes are presented by both the grid and the form. Thecolumn
DSL method has been left for configuring what's specific for a column. For details, see Netzke::Basepack::Attributes. -
data_adapter
method has been renamed tomodel_adapter
-
model_class
method inAbstractAdapter
has been renamed tomodel
- The
netzkeSubmit
andnetzkeLoad
endpoints have been renamed tosubmit
andload
respectively; keep this in mind if you override them in your app.
-
Column/field label for association no longer includes association method name by default. For example, for
author__name
attribute it'll now be "Author", not "Author name". -
preconfigure_record_window
has been renamed toconfigure_form_window
-
The
default_fields_for_forms
method has been renamed todefault_form_items
. -
The
data_store
config option has been renamed tostore_config
. -
Permissions configuration got consolidated into single
permissions
config option. See Netzke::Grid::Base -
The
del
action has been renamed todelete
. -
Columns configuration (by using the
Grid.column
DSL method, or thecolumns
configuration option) no longer has effect on corresponding form fields. Use the newattribute
DSL method or theattribute_overrides
config option (see above) to set the common configuration option for both column and form field. -
Virtual columns declared with the
column
DSL method are no longer automatically appended to the end of the column list; use thecolumns
config option or override theGrid#columns
method to explicitely list them. -
The endpoints dropped their prefix
server
; additionally,serverDelete
has becomedestroy
; keep this in mind if you override endpoints in your app. -
All scope-related configs (including those of the columns) now only accept a Proc or a Hash.
-
Class-level component configuration is gone (its sole purpose was to allow reducing the amount of generated JS code - not worth it).
-
enable_edit_in_form
,enable_edit_inline
,enable_pagination
options are gone. -
enable_extended_search
option is gone.
-
Before to localize association attribute it was needed to specify the attribute in the doubre-underscore notation, for example:
es: activerecord: attributes: book: author__name: Autor
Now it should be cut down to the association name:
es: activerecord: attributes: book: author: Autor
-
By default, Grid now uses form to add/edit records. Set
edit_inline
to true to use inline editing when possible (implicitly setspaging
totrue
). -
By default, Grid now handles large number of records by using a buffered store (allows for "infinite scrolling"). Set
paging
totrue
if you want pagination instead. -
The toolbar was reduced to 'add', 'edit', 'delete', and 'search' buttons by default. Additionally, the 'apply' button is added when
edit_inline
is set totrue
. -
Buttons previously disabled due to permissions are now not added to the bottom bar alltogether.
-
Override new
configure_form
method to specify extra configuration to the forms -
Warn the user at an attempt to change the page when there are unapplied changes; disable the warning by setting
disable_dirty_page_warning
totrue
. -
Proper support for decimal datatype was added
-
Multiediting of reconds now works properly with boolean fields (a tristate selector was implemented).
Please check 0-12 for previous changes.