Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul de Quant 403 posts 1521 karma points
    Jun 08, 2016 @ 08:47
    Paul de Quant
    0

    Static drop-down list

    Hello,

    How would I go about adding a static drop down lsit. I can see from the documentation of how to do a dynamic one but not one where - say you only have two fixed options (that never change).

    Would I have to create a new controller for this or is this something that can be typed into the config settings in the Model.

    Thanks

    Paul

  • Comment author was deleted

    Jun 08, 2016 @ 13:48

    You could just create a custom view with the items hardcoded... doesn't need to have a controller in that case...

  • Comment author was deleted

    Jun 08, 2016 @ 13:53

    So just add this

    <div>
        <select ng-model="property.Value">
          <option value="0">---Please select---</option>
          <option value="1">First</option>
          <option value="2">Second</option>
          <option value="3">Third</option>
        </select>
    </div>
    
  • Paul de Quant 403 posts 1521 karma points
    Jun 08, 2016 @ 14:34
    Paul de Quant
    0

    Hi Tim,

    This did the trick, thanks for looking into it.

    Cheers

    Paul

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Sep 12, 2016 @ 06:56
    Biagio Paruolo
    0

    Do you want use it into the backoffice?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies