This example uses shows Editors' ability to very easily use different display methods to show your form to the end user, using what is known as a display controller. Editor makes very few assumptions about how its form will actually be displayed to the end user (where in the DOM, interaction etc) leaving the actual positioning and final display of the form to the display controller.
Editor has two built-in display controllers ('lightbox' and 'envelope') which can be specified by using the display initialisation option - 'lightbox' is the default. Additional display controllers can be added as plug-ins to Editor if you wish to use a different display method.
This example builds on the base example utilising TableTools buttons to control the form. The envelope display method has a number of configuration options available to it, including the ability to toggle automatic scrolling of the window and attaching the form to the table header, both of which are shown here. The Envelope with inline controls example shows the default effect for these settings, while we alter the defaults here.
| Browser | Rendering engine | Platform(s) | Engine version | CSS grade |
|---|---|---|---|---|
| Browser | Rendering engine | Platform(s) | Engine version | CSS grade |
The Javascript below is what is used on this page for the example shown.
The HTML shown below shows the TABLE that is used in this example.
The code below is that HTML that is used to drive the server-side section of this exampe.
The HTML shown below includes the Javascript and CSS files that are required for the Editor operation on this page. You can use this as a template for your own pages, but if you move the files you might need to update the paths.
Editor submits and retrieves information by Ajax requests. The two blocks below show the data that Editor submits and receives, to and from the server. This is updated live as you interact with Editor so you can see what is submitted.
The following shows the data that has been submitted to the server when a request is made to add, edit or delete data from the table.
// No data yet submitted
The following shows the data that has been returned by the server in response to the data submitted on the left and is then acted upon.
// No data yet received
DataTables can request information to display from the server when the page first loads. The block below shows the response from the server.