dynamically set options for a dropdown menu

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Thu Oct 11 06:17:11 BST 2018


Hi,

On Wed, 10 Oct 2018 21:46:26 +0200
meik michalke <meik.michalke at uni-duesseldorf.de> wrote:
> hi,
> 
> the call
> 
>   system("pandoc --list-output-formats")
> 
> lists the output formats your currently installed version of pandoc
> can write. given that this list of formats will vary between systems,
> it might be a good idea to not have a static dropdown menu with
> possible output formats, but one which only lists what you can
> actually use. so, could the above call somehow be used to dynamically
> fill a dropdown menu in a plugin dialog?

this is not currently possible for a dropdown, but you can set the
options of a <select> element, dynamically (property "available").

Of course that feature would make sense for a dropdown just as much,
but the implementation of that is quite different.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20181011/74c35d6b/attachment.sig>


More information about the rkward-devel mailing list