created: 20231218192649874 modified: 20251212092210168 tags: RevealWidget title: RevealWidget (Popup Clamping Example) This example demonstrates the use of <<.attr positionAllowNegative>> and <<.attr clamp>> to clamp a popup inside its parent container. <<.attr clamp>>=<$select tiddler="$:/temp/clamp-demo-active" field="text" default="none"> <$checkbox tiddler="$:/temp/clamp-demo-allow-negative" field="text" checked="yes" unchecked="no" default="no"> <<.attr positionAllowNegative>> <<.attr position>>=<$select tiddler="$:/temp/clamp-demo-position" field="text" default="below">
<$list filter="[range[25]]">
<$button popup="$:/state/popup-clamping">Pop Me Up
<$reveal type="popup" position={{{ [{$:/temp/clamp-demo-position}else[below]] }}} state="$:/state/popup-clamping" class="grid-popup" clamp={{{ [{$:/temp/clamp-demo-active}else[none]] }}} positionAllowNegative={{{ [{$:/temp/clamp-demo-allow-negative}else[no]] }}}>
!! This is the popup And this is some text