Create a mask in Simulink with edit field as enumeration
<p>I want to create a mask on a subsystem, like the mask of the Enumerated Constant (shown below). As you see in the blue circle, the Value can be edited using a drop down list of possibilities. The Enumerated Constant </p>

<p><a href="https://i.stack.imgur.com/ki7O1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ki7O1.png" alt="Mask of Enumerated Constant"></a></p>

<p>If creating a mask it is indeed possible to make a Popup instead of an Edit but the problem with this is that the list of possible selections needs to be manually created inside the mask. What I want is that this Edit value only shows the possible selections of a certain enumeration that I want to specify only ones. The Enumerated Constant mask does this with an Edit type but even then it works.</p>

<p>Of course I tried to reverse engineer this from this block but I can not find how Matlab does this.</p>