tamal das
Hi,
I’m using SPARK UI toolkit’s service data table in coach. When the table is rendered with some data – how do I make the entire row clickable?
so that based on click , I can select that particular data in table’s row and generate and event to go to another coach / service with that data.
SPARK Support
Hi Tamal,
The Service Data Table control does allow for a selected able row option, and provides a method for getSelectedRow(). When you downloaded the SPARK UI Toolkit, you should have imported the SPARK Showcase with the file. Please see the following screenshots and accompanying steps.
1. Open Service Data Table Showcase under Heritage Human Services.
2. Select a Service Data Table – such as the Drinks table.
3. Set the Selection mode to Single under Behaviors
4. Define a method to use for the On Row Selected by User event.
5. In your JavaScript, call the Service Data Table’s getSelectedRecord() method.
Regards,
Stephen P.