Description: A Grid Row Action button. Adds a new button to each row of the grid. Defines a JavaScript action to add to a given Grid.
JavaDoc: Click here
Body content: Empty. All enclosed content will be ignored.
Attributes:
Name | Description | Data type | Required | Default value |
cssClass | The css class to apply to the button. | String | No | - |
jsCode | The JavaScript code to execute when the button is pressed. | String | Yes | - |
tooltip | A button tooltip. | String | No | - |
Examples:
View - JSP file
<dif:document> <dif:grid id="grid" title="Grid Sample" data="${stage.services}" noDataMessage="No services exist!" groupColumn="providerName"> <dif:column attribute="providerName" /> <dif:column attribute="applicationName" /> <dif:column attribute="ID" title="ID" /> <dif:column attribute="name" /> <dif:column attribute="stageCount" /> <dif:column attribute="registered" sortable="false" /> </dif:grid> </dif:document>
Stage - Class file
public class SomeStage { (...) @ProviderList List<IProvider> providers; public List<ServiceRecord> getServices() { List<ServiceRecord> services = new ArrayList<ServiceRecord>(); for (IProvider provider: providers) for (IApplication application: provider.getApplications().values()) for (IService service: application.getServices().values()) services.add(new ServiceRecord(service)); return services; } }
Screenshots:
See also: