Create a static list

Hi all,

What is the best way to create a static list for parameters. I would like to create a dropdown list which is not coming from TM1. I would like to have a tm1-ui-subnm but with static values (1, 2 and 3).

I would like to create a static list in my Canvas page, in order to be able to pick the dimension:

here my code for the select

    <div class="col-md-8">
      <select  class="form-control" ng-model="page.title.level" ng-init="page.title.level='1'">
          <option>0</option>
          <option>1</option>
         <option>2</option>
         <option>3</option>
      </select>
    </div>

I’m using the class “form-control” but it does not look exactly like the tm1-ui-subnm dropdown list.

Do you know how can I make my static dropdown list looks like the tm1-ui-subnm?

Cheers

Hi Vincent,

If you want it to look the same you will have to copy the CSS and markup and create a custom control. The best way to work that out is with the Developer tools in the browser you are using.

Hi @Vincent, not a standard Canvas answer but if your model has the apliqode framework then just add elements & an appropriate subset to the }APQ PickList Validations dimension. Then you can just use the normal Canvas tm1-ui-subnm