Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.8K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Problem with TogglerBar in a Module

POSTED BY: Michael Gamer
2 Replies
Posted 11 years ago
POSTED BY: Updating Name

Try starting from the following. It is based on your trial. Compare it with yours to see the modificaitons that were needed to make it work. I hope this helps... --David

chooseWords[words : {_String ..}] :=
 DynamicModule[{x = {}, temp = words},
  {TogglerBar[Dynamic@x, temp], 
   Dynamic@x}]

Make use of it, for example, like the following

chooseWords[{"aword", "bword", "cword", "dword"}]

I assumed you wanted to be restricted to Strings, but that is not necessary in order to make it work.

POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard