Documentation Publicon Reference Preferences Button Options Action Options
ButtonFunction
• ButtonFunction is an option for buttons that determines which function to execute when an active button is clicked.
• The default setting for ButtonFunction causes the button to paste its contents in the current notebook selection. • ButtonFunction is used only with the setting Active True either for the button or for the cell the button is in.• With ButtonFunction f, the first argument supplied to f is specified by the setting for ButtonSource and the second argument by the setting for ButtonData. • Standard Publicon precedence rules require parentheses around a pure function, as in ButtonFunction (body &). • Settings for ButtonFunction are often inherited from button styles via the ButtonStyle option. • See also: ButtonEvaluator, ButtonNote.