/popup: add scroll argument, allow scroll by default
| @@ -1396,6 +1396,13 @@ export function initDefaultSlashCommands() { | ||
| 1396 | 1396 | returns: 'popup text', |
| 1397 | 1397 | namedArgumentList: [ |
| 1398 | 1398 | SlashCommandNamedArgument.fromProps({ |
| 1399 | + name: 'scroll', | |
| 1400 | + description: 'allows vertical scrolling of the content', | |
| 1401 | + typeList: [ARGUMENT_TYPE.BOOLEAN], | |
| 1402 | + enumList: commonEnumProviders.boolean('trueFalse')(), | |
| 1403 | + defaultValue: 'true', | |
| 1404 | + }), | |
| 1405 | + SlashCommandNamedArgument.fromProps({ | |
| 1399 | 1406 | name: 'large', |
| 1400 | 1407 | description: 'show large popup', |
| 1401 | 1408 | typeList: [ARGUMENT_TYPE.BOOLEAN], |
| @@ -2108,6 +2115,7 @@ async function popupCallback(args, value) { | ||
| 2108 | 2115 | |
| 2109 | 2116 | /** @type {import('./popup.js').PopupOptions} */ |
| 2110 | 2117 | const popupOptions = { |
| 2118 | + allowVerticalScrolling: !isFalseBoolean(args?.scroll), | |
| 2111 | 2119 | large: isTrueBoolean(args?.large), |
| 2112 | 2120 | wide: isTrueBoolean(args?.wide), |
| 2113 | 2121 | wider: isTrueBoolean(args?.wider), |