Changes between Version 8 and Version 9 of documentation/LuaManual/APIReference
- Timestamp:
- 05/29/12 10:00:47 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/LuaManual/APIReference
v8 v9 445 445 Create a new DataFormatter object for use in Lua. ''name'' defaults to an empty string, and ''format_function'' must match the function signature that you would pass to the property ''FormatData''. Both are optional, but if you do not set format_function in ''new'', then you must set it on the property. Where to set the function is solely personal preference, neither is "better" than the other. 446 446 447 '''FormatData'''` `=function(`{string} ') return `string` end::447 '''FormatData'''` `=function(`{string}`) return `string` end:: 448 448 Set this to a Lua function that takes an array of strings, and returns a string. 449 449