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 308 posts 1246 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

  • Tim Geyssens 6416 posts 15012 karma points MVP 2x c-trib
    Jun 08, 2016 @ 13:48
    Tim Geyssens
    0

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

  • Tim Geyssens 6416 posts 15012 karma points MVP 2x c-trib
    Jun 08, 2016 @ 13:53
    Tim Geyssens
    101

    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 308 posts 1246 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 1453 posts 1592 karma points c-trib
    Sep 12, 2016 @ 06:56
    Biagio Paruolo
    0

    Do you want use it into the backoffice?

Please Sign in or register to post replies

Write your reply to:

Draft