What is the simplest way I can add a reset / refresh option to dynamic module / manipulate? This seems like a bit of a hack, but it gives approxiamately desired output:
Manipulate[
Grid[Partition[DynamicModule[{x = a},
Button[Text[Style[#, 24]], x = Mod[x + 1/2, 1], ImageSize -> {60, 60},
Background -> Dynamic[Hue[1, 2 x, 1]]]] & /@ Range@100, 10],
Spacings -> {0, 0}], Invisible@Control[{a, {10^(-6), 0}}],
Button["Reset", If[a == 0, a = 10^(-6), a = 0]]]
What is the best way to achieve this without the workaround?
DynamicModules
and oneManipulate
, I suppose you refer to the outerManipulate
but we should not quess. Reseting particular DynamicMOdules is a reasonable question too. $\endgroup$DynamicModule
inManipulate
- not sure whether that's necessary, but keeps it self-contained. I supopose I want to reset thex
values, but I am not certain. I want to reset the cells to white at any rate. I had no idea there were so manyDynamicModules
BTW! $\endgroup$