![]() ![]() An example in your JS code might look like this: $. You’re basically creating an XHR request and sending it off with the proper data. Xojo provides a ListBox control for desktop, mobile and web projects: DesktopListBox iOSMobileTable WebListBox Note For mobile, the iOSMobileTable provides the mobile-equivalent of a ListBox. The HandleRequest event of the Xojo-side WebSDK classes can also be used for passing data between JS and Xojo, and it’s pretty straightforward as well. Setting the number of columns to 2 in the Open event: Me. Here’s a basic example of that: var controlObject = XojoWeb.getNamedControl(controlID) ĬiggerServerEvent(eventName, params, true) ColumnCount As Integer Gets or sets the number of columns in the ListBox. If you wish to call triggerServerEvent outside of your class code, then you can use the getNamedControl method of the XojoWeb class to get the JavaScript object representing your component, then call triggerServerEvent. The ListBox is a great control for showing users lists of data, even data with lots and lots of rows. I would like to report some strange behavior of the weblistbox. Thank you This should be added to Xojo as a native function, don’t you think so AnthonyGCyphers (Anthony G. ![]() Inside your JavaScript class definition, this is as simple as calling iggerServerEvent("eventName","data",true) Is there a property or method of WebListBox that I can use to scroll the WebListBox to the bottom Xojo Programming Forum WebListBox scroll to bottom.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |