Adobe 65007312 Programming Guide - Page 105
Binding multiple keys, To specify even more complex bindings
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 105 highlights
CHAPTER 5: Creating a User Interface for Your Plug-in Binding UI values to data values 105 transform = function( value, fromTable ) if fromTable then return value ~= nil and value ~= '' -- check that key has a value end return LrBinding.kUnsupportedDirection end, } }, } local result = LrDialogs.presentModalDialog( -- invoke the dialog { title = "Binding Example", contents = contents, } ) end ) Binding multiple keys To specify even more complex bindings, between a property in a view object and multiple keys in one or more bound tables, the value part of a binding key-value pair can be a table with these items: keys bind_to_object -or- object A table specifying one or more keys. The table can have these entries: X key: A key name in the bound table. X bind_to_object or object: Optional. The name of an observable table which overrides both the default bind_to_object value and this binding's bind_to_object value. X uniqueKey: Optional. Because you can specify keys in different tables, the names might overlap. This provides a unique name that is used to identify this key in the values table passed to your operation function. Optional. An observable table which overrides the value of the bind_to_object view property.