scripting:dialogs:button

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scripting:dialogs:button [2015/03/25 21:45] – [Properties] adminscripting:dialogs:button [2018/01/10 20:41] (current) – external edit 127.0.0.1
Line 14: Line 14:
 | **align**    | stretched | [[scripting:dialogs:align|Alignment]] of the control |   | **align**    | stretched | [[scripting:dialogs:align|Alignment]] of the control |  
 | **positive**    | false | Indicates //positive// buttons that shall be disabled if all required fields on dialog are not filled |   | **positive**    | false | Indicates //positive// buttons that shall be disabled if all required fields on dialog are not filled |  
-| **returnval**    | empty | Dialog return value. There are some predefined return values as "ok" or "cancel" that lead to closing of the dialog. |   +| **returnval**    | empty | Dialog return value. If there is no //onclick// event is bound, dialog will be automatically closed, after button click and //returnval// is returned by [[scripting:api:application:dialog|Application.dialog(...)]].|  
  
 ===== Events ===== ===== Events =====
Line 21: Line 20:
 ^ Event     ^ Description    ^ ^ Event     ^ Description    ^
 | **[[scripting:dialogs:events:onclick|onclick]]**    | event handler (function name) to be called, if button is clicked|   | **[[scripting:dialogs:events:onclick|onclick]]**    | event handler (function name) to be called, if button is clicked|  
 +
 +===== Predefined Return Values =====
 +
 +^ ID     ^ Positive    ^
 +| //none//    | false|
 +| //cancel//    | false|
 +| //ok//    | true|
 +| //yes//    | true|
 +| //no//    | false|
 +| //abort//    | false|
 +| //retry//    | true|
 +| //continue//    | true|
 +| //close//    | false|
 +| //help//    | false|
 +| //other//    | false|
  
 ===== Example ===== ===== Example =====