Temenos Digital
R24 AMR | Min(s) read

Select Products

This component contains a sub-header and a list of options with a dropdown indicator. On click of the dropdown indicator, the expanded view of the component appears where a list of options is displayed with a checkbox to multi-select the required option. This component is used in the Temenos DigitalOrigination app (previously known as Onboarding app) to display additional information to the user.

Following are the various views of the Select Products component:

  • Desktop & tablet view: width > 640

  • Mobile view: width < 640

Usage

Here are the steps to set the component in Quantum Visualizer:

  1. Open the Temenos DigitalOrigination project in Quantum Visualizer.
  2. Drag and drop a Flex Container widget onto the required form.
  3. Select the Flex Container and set the following properties:
    • width: "100%"
    • left and top as per required designs
    • height: "preferred"
  4. There can be one or more instances of the component. Use the following code for instantiating the component.

     for(var NoOfInstances = 0; NoOfInstances<2; NoOfInstances++){
        var NewCompInstance = new com.dbx.selectProducts({
              "clipBounds": false,
              "id": "selectProducts" + NoOfInstances,
              "isVisible": true,
              "masterType": constants.MASTER_TYPE_DEFAULT,
              "zIndex": 1
            }, {}, {});
        this.view.FlexToAddComponents.add(NewCompInstance);
        }	
  5. Make sure that the parent Flex(FlexToAddComponents) is in flow vertical layout.
  6. Insert the component in the Flex and write the following code in the respective form’s onBreakPointChange function.
    this.view.SelectProducts.onBreakpointChange(eventObj,width);
    //width is the current breakpoint value 
    //eventObj is the component instance

APIs

Callbacks

Copyright © 2020- Temenos Headquarters SA

Published on :
Thursday, May 30, 2024 12:42:08 PM IST