Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you display an URL field for the Search widget? #87

Open
cmccullough2 opened this issue Dec 29, 2016 · 2 comments
Open

Can you display an URL field for the Search widget? #87

cmccullough2 opened this issue Dec 29, 2016 · 2 comments

Comments

@cmccullough2
Copy link

What format should an URL field have for the columns section? Media? I cannot find it in the API.

@tmcgee
Copy link
Owner

tmcgee commented Dec 30, 2016

If you have a raw url in a field and need to construct the clickable hyperlink, use the dgrid's formatter attribute for the field's column definition. Here's an example for the dojo datagrid but the concept is the same for the dgrid.

@cmccullough2
Copy link
Author

I forgot about this issue. Sorry about the delay. This is what I am talking about. Currently, I have the Identify widget perform the popup window. This result will take you to this website when the ICAO code is provided from the rest service field. https://www.windytv.com/KCDR. I can use this with the WAB eSearch widget. I would prefer to use your widget.
"links": {
"link": [
{
"alias": "Windyty Wind Map Forecasts",
"content": "https://www.windyty.com/{ICAO}",
"icon": "./images/i_pws.png",
"disablelinksifnull": true,
"popuptype": "text"
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants