change the background color of particular time slot in DHTMLX scheduler - dhtmlx

In Dhtmlx Scheduler, I want to change the background color of particular time slot, e.g 1PM to 2PM, provided that this is not an 'event'. Is there any way to do this?
Thank you in advance.

You can achieve this using the scheduler.markTimespan method.
See the documentation here.

Related

Searchable textblock in adaptive card (Same behavior in manage tags add people)

Good Day! I have a question, is it possible to have a searchable textblock in adaptive card? i have this feature to implement in a task module wherein if i type in a text in the textblock it will filter the result based on what i searched. kinda like the behaviour in managing the tag where you add some people. see image below:
I am looking for a way on how to replicate the same behaviour. maybe you guys can help me that would be great. Thank you.
See Image
Unfortunately this is not possible right now there's an open issue for this here:
https://portal.productboard.com/adaptivecards/1-adaptive-cards-features/c/15-input-choiceset-auto-complete
You can upvote it, its already planned just not finished yet.

How can I add an icon in a label?

I have 2 questions need your help.
I would like to add a button on each plot to be a setting button. I use label with event listener and it works well ( as shown in attached file). However, my client asked me to change from normal text to graphic icon? How should I proceed?
As you can see from the attached image, the third plot is macd series. The value rage is from -3e-8 to 3e-8 (by my observation). I manually set the maximum and minimum, and it get incorrect scale as shown.
How should I set the maximum and minimum for yScale?
I don't know how to get maximum and minimum value from a series. Can you suggest me?
A1 – Unfortunately, the current version of AnyChart doesn't provide an opportunity to add custom-made buttons inside the chart. But you can use a trick and use stage based layout. It means that the container includes a stage. The stage includes the stock chart all other elements by layers. Using this approach you can place an image (icon) upon the plot and set a listener just as for the 'settings' label.
For details, please, check the sample in the comment below.
A2 - We are planning to fix this behavior in 8.4.2 update (approximately by the end of November 2018).
I will notify you when the fix becomes available.
As a temporary workaround, you can get min /max value from your MACD indicator. For details, please, check the sample in the comment below.
You can apply min/max to the yScale of plot #0 like this:
chart.plot(0).yScale().minimum(minValue);
chart.plot(0).yScale().maximum(maxValue);
We are glad to inform you that we have released 8.4.2 update which brings many fixes and improvements. This update also includes a fix on the issue you reported. Now calculation of min/max of Y-scale works properly with small values. Update your binaries to get the fix.

How to reduce the speed of ScaleTo property apply to the image in Xamarin forms

In my project I have applying 'ScaleTo' property to the image, it's work nice but it applying very fast. I need to apply ScaleTo property slowly i.e when I apply ScaleTo property from (0, 2000) it will apply to the image within 5 milliseconds but what my requirement is need to apply that effect slowly upto 2 seconds. Please suggest any idea. Thank in advance.
You could see there is another parameter for the duration in the ScaleTo if you see it again.
It's default value. That's probably why you couldn't use it.

Making a bouncing effect using Tweener

I would like to bounce my actor on y-axis for two
Seconds following a button release event.
I don't know how I can do that using Tweener.
Gnome shell 3.4.
Thanks for any help,
I gave up trying that effect. Instead using Tweener (imports.gi.Tweener), I simply set the opacity of the object from 0 to 255 in 'easeQuadEffect'.
GPaste Integration does what you want. Inspecting the code may be informative.
Search for "Tweener" in the gpaste_integration.js file.

How can I add a MyDrawPanel to a program while adding other objects as well?

I am attempting to make a simple game, and I have loaded an image onto a myDrawPanel, which is on the JFrame, successfully. However, I also want to add other things to my GUI, such as buttons, etc. I cannot do this, however, because when I add the myDrawPanel to a JPanel, all I get is a small square in the top center of the window. This is proving to be greatly limiting, and I was wondering if there is an alternative "JObject" that I can add the myDrawPanel to in order to allow for the customization of my GUI. Thanks in advance, and Merry Christmas!
A JPanel (or sub-class) generally obtains its size from the components it contains. If no components are in it, it will be small.
One way to fix that is to call setPreferredSize(Dimension) on the customized panel.
p1.setPreferredSize(new Dimention(1100,800));

Resources