Custom Field Editor Views
[UIOMaticField(Name = "Owner", Description = "Select the owner of the dog", View = "~/App_Plugins/Example/picker.person.html")]API Controller
[PluginController("Example")]
public class ExampleApiController: UmbracoAuthorizedJsonController
{
public IEnumerable<dynamic> GetAll()
{
var query = new Sql().Select("*").From("People");
return DatabaseContext.Database.Fetch<dynamic>(query);
}
}AngularJS View
<div ng-controller="Example.Picker.Person">
<select
ng-model="property.value"
ng-options='person.Id as (person.FirstName + " " + person.LastName) for person in persons'>
<option value="">---Please select---</option>
</select><br>
</div>AngularJS Controller
Package Manifest
Thoughts
Last updated