Plugin SDK v1.4.3.0 Release Notes
This release is focused on updates to the JUI framework to improve performance and make it more flexible. This includes backend changes to the way data is managed for events.
- Changes to
GridViewGridViewswithSelectListViewsinside of them were not behaving correctly in event actions and triggers.GridViewsshould now behave as expected. (PSDK-291) (#314)GridRow.HorizontalAlignmentandGridRow.VerticalAlignmentproperties have been added to allow you to change the content alignment within aGridViewGridRow. Use the enumsEHorizontalAlignmentandEVerticalAlignment. (PSDK-295)GridViewsdid not align with other views correctly due to some extra padding being added into their HTML. This padding has been removed to better align the view on pages. (PSDK-297)
- Changes to
SelectListView- Add
SelectListView.UseOptionKeyAsSelectionValueto allowSelectListViewto use the option key as the value of the option in HTML (PSDK-299) - Include
OptionKeysinSelectListViewwhen posted back from HS inOnDeviceConfigChange(PSDK-101) (#124 #201 #223)
- Add
- Change how plugin triggers and actions are saved to events.json. Previously, the whole page (i.e. collection of JUI views) was serialized and saved to events.json. This was causing some problems for select lists that contain dynamic data (such as a list of devices)
because the entire select list is loaded from JSON and no call to the plugin is made to refresh it.
Now, we only save a list of key/value pairs to events.json, where the key is the id of the view and the value is the return from
AbstractView.GetStringValue()(the same thing as the dictionary returned byPage.ToValueMap()), and rely on the plugin the provide the translated list of key/value pairs to display to the user. This behavior is automatically handled usingAbstractActionTypeandAbstractTriggerType, andAbstractActionType2andAbstractTriggerType2have been added to allow you finer control over this behavior. The sample plugin has been updated to include an example of this; see the "Write Device PED to Log" event action. (PSDK-298) (PSDK-303)