{hero}

show()

Since: Editor 1.0

Show one or more fields in the display that was previously hidden.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

This method provides the ability to show a field in the end user's displayed form at any time (assuming the field was previously hidden using hide()). This can be useful for cases when you want to have extra form fields available, but only show them under certain conditions (for example when a particular value is selected, you might provide further options based on that value).

This is the inverse of the hide() method.

Note that the field().show() method introduced in Editor 1.3 provides the same functionality as this method for individual fields. Both forms will continue to be supported in future versions of Editor, and they can often be used interchangeably for single fields. The key difference is in the return value - this method will return a DataTables.Editor instance, while the field().show() method returns a DataTables.Editor.Field instance. This can effect how you chain methods if you are using the returned value for chaining.