GetLeftSwipeControl

Typemessage
DictionaryDataGrid
LibraryData Grid
Syntax
on GetLeftSwipeControl
Associationsdatagrid
Summary

Handle this message to specify a custom data grid left hand side swipe control.

Example
on GetLeftSwipeControl
   return group "my custom left swipe control"
end GetLeftSwipeControl

on GetLeftSwipeControl
   -- Hide for the data grid row number 5
   if the dgIndex of me is 5 then
      return empty
   end if
   pass GetLeftSwipeControl
end GetLeftSwipeControl

on GetLeftSwipeControl
   -- Turn right drags and swipes off
   return empty
end GetLeftSwipeControl
RelatedProperty: enable swipe, left swipe control, right swipe control
Command: RowSwipeShowControlForIndexAndSide
Message: RowSwipeHideControl, RowSwipedRight, RowSwipedLeft, RowLeftSwipeControlClicked, RowLeftSwipeControlClicked, RowRightSwipeControlClicked, RowLeftSwipeControlHidden, RowRightSwipeControlHidden, GetRightSwipeControl
Description

GetLeftSwipeControl is sent to your data grid's custom row template. Handle GetLeftSwipeControl if you want to specify a custom left hand side swipe control. Return the id of the control you want to display. Returning empty will result in no control being displayed.

Handing this message will override the left swipe control property.