Closed dylancis closed 6 years ago
I don't think that I am supporting lists to be translated as attributes - so I think this is where the problem is. Let me think a bit on how lists might be supported.
Hi @dylancis,
I have added support for lists, so that your example should work. The core function, bs_attr()
, now does this:
library("bsplus")
bs_attr(list("show" = 3500, "hide" = 50))
{"show":3500,"hide":50}
I have pushed this change to master, can you install the dev version and see if this solves your problem?
Thanks,
Ian
HI @ijlyttle , Works perfectly indeed! Many thanks for your very quick enhancement.
Dylan
No problem, thanks for raising the issue!
as per bs doscs the delay attribute should accept:
delay: { "show": 500, "hide": 100 }
However trying the R equivalent failed(i.e. get ignored) while passing a single a number (hence applied to both show and hide works). Not sure If I am doing anything wrong with the syntax but JSONifying my argument looks file:How do I apply different number to show and hide parameters please? Reproducible example (delay argument has no impact):
While single number works fine: