Web Atoms 1.6.246

Released: Sep 12, 2021

Updates in 1.6.246

Features

  • Added new Method Overloads - Method overloads for InvokeFunction, CreateNewInstance and InvokeMethod in IJSValue have been added to reduce array allocation. There is no change in exiting APIs, they will continue to work as it is. C# compiler will automatically choose the method with the same parameters instead of creating an array. However, internal implementation will allocate an array for parameter, but the array allocation has been reduce by 50%.
  • Added new Type JSDelegate - Added new Type JSDelegate which creates a typed delegate for JavaScript function. So you can easily assign JavaScript function as delegates.
  • Added new TextToModel Delegate in AtomChips - Added new TextToModel property of type Func<string, object> which will be used by the control to convert entered text into any object model. If it is null, entered text will be added to SelectedItems array.
  • Added new AtomExpander Control - Added new AtomExpander control, which has the following properties.
    • IsExpanded - This is controlled by the drop down arrow, however, you can also bind it and update it from the code. If it is true, the details will be visible.
    • Icon - ImageSource of an Image that will be be displayed on the left corner.
    • Detail - You can set any View as child of Detail property, it will be hidden and it will be visible only when IsExpanded is set true.
    • DetailTemplate - Instead setting detail, you can set this property as XF.DataTemplate and a new detail will only be created if control is in expanded state. As soon as control is collapsed, detail View will be destroyed.
  • Added new AtomChoiceView Control - Added new AtomChoiceView control, which is same as AtomXFComboBox but it is written in C#. It has following properties:
    • ItemsSource - List of items to be displayed in popup, choices will be displayed even if it is empty.
    • SearchEnabled - A text editor will be displayed as soon as the control is tapped, you can use Search property to filter your items source.
    • DropDownHeight - Height of the popup, default is 200.
    • Prompt - A selection message displayed if SelectedItem is null.
    • EmptyItemTemplate - Prompt that will be displayed if SelectedItem is null, Prompt will be ignored and this template will be displayed as Prompt.
    • ItemTemplate - Item template for the choices and selected item.
    • SelectionStartCommand - Executed when the choice popup was opened.
    • SelectionEndCommand - Executed when the choice popup was canceled or closed.
    • Search - The text that is entered in search box if SearchEnabled was set to true, you can use this to filter your items source.