This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision |
| scripting:dialogs:multi_listbox [2015/01/20 01:39] – [Dynamic content] admin | scripting:dialogs:multi_listbox [2018/01/10 20:41] (current) – external edit 127.0.0.1 |
|---|
| |
| ===== Items ===== | ===== Items ===== |
| List Box is filled by //Items//. You can fill it statically in-line OR dynamically using associated by //id// script variable (VB Array of integers, use [[scripting:dialogs:ax2js|ax2js]] function to convert from JS array). If you pass dynamic content and define static selection, static one is ignored. | List Box is filled by //Items//. Initial selection state for items can be set statically in-line or dynamically using associated by //id// script variable (VB Array of integers, use [[scripting:dialogs:ax2js|ax2js]] function to convert from JS array). If you pass dynamic content and define static selection, static one is ignored. |
| |
| ==== Item ==== | ==== Item ==== |
| |
| for(var nItem = 0; nItem < 100; ++nItem) | for(var nItem = 0; nItem < 100; ++nItem) |
| dialog_template += '\r\n' + ' <Item text="Item ' + nItem + '"/>'; | dialog_template += '\r\n' + ' <item text="Item ' + nItem + '"/>'; |
| |
| dialog_template += '\r\n' + ' </multi_listbox> \ | dialog_template += '\r\n' + ' </multi_listbox> \ |