How do you create a dropdown list datatype, but pull the downdown values from an external JSON feed
Umbraco 7
We successfully made a custom downdown list dataype using Angular JS, but we have a feeling our Controller is not running correctly. We are using a service that outputs JSONP that we want to call into our project and pull the values in the dropdown list from the JSONP service.
Has anyone done this before? Is this possible? Can anyone provide a simple example?
I wonder if the nuPickers package would be of use ? It has a JSON Drop Down Picker that can be configured by specifying a url to the JSON data (if it's not suitable, then there's always the source code to refer to)
Use uComponents JSON Dropdown. Not sure if this is available for Umbraco 7 yet. But will allow you to define an external data source. Charlie. nuPickers i have never tried but i am sure its good :)
As I understand it the nuPickers project is the successor of uComponents since the codebase in v7 has changed a lot with the backend being wired up on AngularJS and everything then uComponents as we knew it would not make much sense. Hence the creation of the nuPickers project https://github.com/uComponents/nuPickers
So uComponents as people knew it from v4 and 6 is not compatible with v7. Nupickers is the future as I have understood it.
I believe that the JSON Drop Down picker Hendy is referring to above works in the same manner since it's probably just ported from the uComponents project.
How do you create a dropdown list datatype, but pull the downdown values from an external JSON feed
Umbraco 7
We successfully made a custom downdown list dataype using Angular JS, but we have a feeling our Controller is not running correctly. We are using a service that outputs JSONP that we want to call into our project and pull the values in the dropdown list from the JSONP service.
Has anyone done this before? Is this possible? Can anyone provide a simple example?
Thanks
-Carlos
Hi Carlos,
I wonder if the nuPickers package would be of use ? It has a JSON Drop Down Picker that can be configured by specifying a url to the JSON data (if it's not suitable, then there's always the source code to refer to)
Hendy
Use uComponents JSON Dropdown. Not sure if this is available for Umbraco 7 yet. But will allow you to define an external data source. Charlie. nuPickers i have never tried but i am sure its good :)
Charlie.
@Charlie
As I understand it the nuPickers project is the successor of uComponents since the codebase in v7 has changed a lot with the backend being wired up on AngularJS and everything then uComponents as we knew it would not make much sense. Hence the creation of the nuPickers project https://github.com/uComponents/nuPickers
So uComponents as people knew it from v4 and 6 is not compatible with v7. Nupickers is the future as I have understood it.
I believe that the JSON Drop Down picker Hendy is referring to above works in the same manner since it's probably just ported from the uComponents project.
@Hendy: Correct me if I'm wrong :)
/Jan
is working on a reply...