MainActionType - property of the PmfTable object
Description:
The property returns or sets the keyboard or mouse actions on the table, which trigger
onAction event >
Main.
Syntax:
String MainActionType
Values:
Configure individual keyboard or mouse actions.
Entries are in the
KeyVal format.
The default value is
DblClick:1;Click:0;Space:1;Enter:2;.
DblClick - Sets the triggering the
onAction event >
Main to a double-click of the left mouse button.
0 - Left mouse button double-click does not trigger the event.
1 - Left mouse button double-click triggers the event.
Click - Sets the triggering the
onAction event >
Main when the left mouse button is clicked.
0 - Left mouse button click does not trigger the event.
1 - Left mouse button click triggers the event.
Space - Sets the triggering the
onAction event >
Main by pressing the
Space key.
0 - After pressing the "Space" button is not triggered the event.
1 - After pressing the "Space" button is triggered the event.
Enter - Sets the triggering the
onAction event >
Main After pressing the
Enter key.
0 - After pressing the "Enter" button the event is never triggers.
1 - After pressing the "Enter" button the event is always triggers.
2 - Triggering the event depends on whether the form uses the
Enter key to trigger the default action or not.
The default action is usually to confirm the entered values and close the form, i.e., after pressing the
"OK" button.
In this case, pressing the
Enter key will trigger the default action, and
onAction event will not be triggered.
If the form does not have a default action set (e.g. does not have an
OK button), then
onAction event is triggered.
Note:
Property access
for read and write.
This property is also functional in
Web panels.
Example1:
JavaScriptSelect and copy to clipboard
oTable.MainActionType = "DblClick:1;Click:0;Space:1;Enter:0;";
// Writing into the property
var sMainActionType = oTable.MainActionType;
// Reading from the property