I’m trying to display the information tooltip of a queryable WMS (Web Map Service) layer in a leaflet in Shiny. I need it to be performed in 2 different ways: 1/ clicking 2/ typing in coordinates. With the MWE (R code) at the end of this post, a click anywhere on the WMS displays the tooltip , which is part
Tag: shiny
How to setup a Shiny app designed with Golem that uses a htmlTemplate and links to an external JavaScript file
I am trying to understand the required architecture of a Shiny Golem app that utilises a html template and invokes some basic JavaScript on the press of a button. I think that I might be placing the index.html file in the wrong location, and I have not had success on invoking the JavaScript addEventListener on the button. I have included
Why is this Shiny Handler not correctly updating the JS section of the client?
When running the reproducible code at the bottom, I get the strange results in the tree rendered on the left as illustrated in the image below. What am I doing wrong, in my use of the handlers or perhaps in JS script? “Elements” reads the positions of the tree, “Elements2” does a bit of example transformation, and the Element column
How to block user from accessing other tabs in Shiny unless the user clicks a button?
My question is similar to Shiny how to block the user from accessing a tab? But what I need here is: -Block other tabs unless the user clicks on a submit button -Automatically move to the other tab once that submit button is clicked. Here is an example code In the above code, the 2nd tab is blocked unless the
render javascript component (ag-grid) in r shiny
I am trying to include the most basic example of ag-grid from their website in a R-shiny application, starting from there I will add more and more trying to setup a proper communication frontend-backend on data edit. However I am stuck at the basics of the inclusion. The component is included in source code but not rendered: This is the
Shiny Custom Hoverable Dropdown
In my app I would like to have a custom html button as a dropdown menu. I want to have the selected option as an input$ variable. It shall then be printed to the console. With my code I am able to detect the click but instead of printing e.g. Link 1 it returns just an empty string. Answer You
How to use the localStorage option for DT in R Shiny?
I want to design a shiny app that allow the users to save their inputs in the local storage, which means when the users reopen the tool with their web browsers, the tool reload the values last time the users provide. This is mainly achieved by the shinyStore package. Below is an example. So far I can use the shinyStore
Ηow can I get the filename of a file uploaded with a shiny fileInput?
I have the shiny app below in which the user lands on the Upload data panel. I want the user not to be able to move to any of the other 2 tabpanels if he has not uploaded both files that are needed in the Upload data tab. The thing here is that I want both tabs to be activated
How to access user input from radio buttons (made with a JS callback) in shiny DT and have different JS elements in one DT?
I am trying to combine two commonly shared JS callbacks into one R datatable shiny app (having radio buttons (see https://yihui.shinyapps.io/DT-radio/ and Extracting user input values from radio buttons in Shiny DT into a dataframe or list) and having nested rows in a child/parent table (see https://stackoverflow.com/a/56599838/10624798 and many other places). Individually they both work, but not together. I am
framework7: broken tab links after stripping worker IDs from URL
shinyMobile’s inst/framework7-5.7.8/my-app.js file has the following code chunk at the top: It appends a random string (the worker ID) to the URL of the app whenever it is not run locally. E.g., https://my_domain/my_app/ becomes https://my_domain/my_app/_w_123456/. This is super annoying, as it prevents search parameters (e.g., ?param=test) from being consistently captured (screencast video). So, I followed the solution found in this