Is it possible to style the Azure Maps Popup Close Button or create your own instead? - azure-maps

I am using the Azure Maps service in a test to see if it will work for us in a project we are developing. The map service works fine for what we need, but the popup's standard close button is extremely small. Is there a way we can apply some CSS styling to the existing close button, or can we create our own instead of using the built in one?
This is what the close button looks like on our test service now:

I figured it out!
It was rather simple. I took a guess and set the closeButton option to false, and on my button control I added a "onclick" attribute with the value of "popup.close()" and it worked just fine.

Related

Correct way to add custom buttons with OpenTok

I'm building a video application for the web in React using OpenTok. OpenTok has built in buttons for muting the mic for the publisher and muting the audio for subscribers. In my case I also need buttons to mute the video for both the publisher and the subscriber.
I haven't seen anything about a mute video button in the documentation so I built the functionality myself using subscribeToVideo. The problem is that I want to add a button with this functionality next to the mute audio button, but I haven't found anything about custom buttons in the documentation.
So my question is: What's the best way to add custom buttons to OpenToks bar?
Of course I could append a button to the html and style it in place myself, but it feels ugly and I don't know what the consequences are. I guess this is my back up solution if there isn't any other way.
I will probably need to add other buttons as well in the future so I really hope OpenTok supports custom buttons and that it's just me that haven't found how to do it.
TokBox Developer Evangelist here.
We don't have any documentation on custom buttons, but you do have three options for the video and mute buttons on the video element.
If you want a custom button, you will have to append that to the HTML and toggle subscribeToVideo and subscribeToAudio properties like you said.
Here is a react sample that adds a mute video button https://opentok.github.io/opentok-web-samples/React-Basic-Video-Chat/
I would recommend that you just set the buttonDisplayMode to off and then recreate the mute audio button just using subscriber.subscribeToAudio() and publisher.publishAudio(). This way if eg. the opentok UI changes slightly it doesn't matter for you, plus you can make it all look however you want.

Button from an iframe in WebBrowser does not work

I am using the WebBrowser component. There is a button in an iframe which when clicked has to trigger redirect. The redirection is not happening and I am given the android code below to use it to make redirection work.
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setAllowFileAccess(true);
webView.getSettings().setDomStorageEnabled(true);// setJavaScriptCanOpenWindowsAutomatically(true);
webView.getSettings().setAllowContentAccess(true);
Do I have to
1. Create a cn1 plugin so I use the android code
2. Or those settings come by default with the WebBrowser component for android.
3. Or is there another stuff I have to do to get the button to work.
Thanks.
You can access any of the set* methods on the settings using BrowserComponent.setProperty() e.g.:
myBc.setProperty("AllowContentAccess", Boolean.TRUE);
Notice that this might fail if a special permission is required.

Globally disable click out side of ionicModal

ionicModal is appearing like a popup along with backdrop in iPad (Fine in android tabs with full screen view). Modal is closing whenever user clicks on backdrop. It will be an issue if user is filling a form.
Yes, I can use backdropClickToClose: false property while creating modal but I used over 60 modals all over my app. Is there any way to set backdropClickToClose:false globally in a config like
$ionicModal.config {
backdropClickToClose : false
}
Thanks in advance.
Unfortunately, I have not been able to find how to do this using config. There currently doesn't seem to be a way to do it that way.
The only thing I found is the commit for the backdropClickToClose configuration for $ionicModal, which may give others a clue as to how this can be achieved.
Another idea would be to wrap the $ionicModal in a service and have some default parameters implemented in there, but I am not sure whether that would be a solution to your problem.
If you really want to be able to configure this, you may want to consider submitting an issue on GitHub, which you can do here.

Dynamically "Delete" Icon hide show in in kendo scheduler

I have create new event in kendo scheduler.There is some problems in my scheduler.I want to show delete button only authorize person who is created this event.And I want to hide delete button who is not created this event,Only show event scheduler and hide icon.
I am so tired but not solved this problems please help
I think that you need to create different types of users and give them different perks. For example, the person who created that event will be an administrator. You have to create some function where the administrator will have the create and the destroy properties as true. To other users, you'll set those properties false. As for the hiding or not buttons, I suggest you to make your own custom edit form template. This was just a general idea but I hope you get the bigger picture.
updated answer:
Not only I think you should implement the CRUD operations manually but also customize the Scheduler behavior. Just like you can wire edit event and hide the save button if an user is not authorized or just like you can wire a save event and control wheather you allow or not event modifications, the same can be made with a delete event. Anyway, from what I understood, I think that using a custom editor template to control the state of any components should be enough. Basically, define a custom template and allow/disable/hide/show some widgets depending on the user that is logged in. The credentials can be loaded and used directly in the template. Check this dojo, it might be useful.

wpf checkbox doesn't display over citrix

So we have a WPF app deployed on a citrix server, it all works fine except that the checkbox won't show that it has been clicked (it's actually working just fine). So weird - just that one little thing, I have buttons which I have customized the pooh out of using visual states and those are all fine. A google search of "wpf checkbox citrix" turns up nothing useful. Anyone seen this or have an idea where to look?
Thanks
There might be some incompability between the display driver, Citrix, and the CheckBox default style for the active Windows theme. I would write a simple CheckBox template (I can include one if you need) and see if that works, and if it does, use that instead of the default theme style.

Resources