Default Field Editor Views

Here is an overview of the default property views you can use out of the box. Some of these require additional configuration before they can be used correctly.

Checkbox

Renders a single checkbox

[UIOMaticField(Description = "Example checkbox property",
    View= UIOMatic.Constants.FieldEditors.Checkbox)]
public bool CheckBox { get; set; }

Checkboxlist

Renders a list of checkboxes

Config

The checkboxlist requires additional configuration.

[UIOMaticField(Description = "Example checkboxlist property", View = UIOMatic.Constants.FieldEditors.CheckboxList)]
public string Checkboxlist { get; set; }
  • The alias of the type that will be used to populate the dropdown

  • The column used for the value of the item

  • The template used for the text of the item

  • The column used for sorting

  • The delimiter you want to use

      [UIOMaticField(Description = "Example checkboxlist property", View = UIOMatic.Constants.FieldEditors.CheckboxList,
          Config = "{'typeAlias': 'person, 'valueColumn': 'Id', 'textTemplate' : '{{FirstName}} {{LastName}}', 'sortColumn' : 'FirstName', 'delimiter' : ';'}")]
      public string Checkboxlist { get; set; }

Content Picker

Renders a Umbraco content picker (will store the id of the selected content item)

Date

Renders a date picker

Datetime

Renders a datetime picker

DateTime Offset

Renders a datetime picker and handles the offset behind the scenes. It doesn't allow to change the offset.

DateTime Utc

Renders a utc datetime picker.

Renders a dropdown (usefull for foreign keys)

Config

The dropdown requires additional configuration.

  • The alias of the type that will be used to populate the dropdown

  • The column used for the value of the item

  • The template used for the text of the item

  • The column used for sorting

Create optional cascading or filtered dropbox options

  • foreignKeyColumn : 'PropertyOnRelatedObject'

  • foreignKeyValueAlias : 'PropertyOfCurrentObjectToFilterOn'

File

Renders a file picker (allows you to select a file from the media library, will store the path to the selected file).

List

Renders a list view (based on a foreign key)

Config

The list requires additional configuration

  • The alias of the type that will be used to populate the list

  • The name of the forein key column

  • Wether or not you wish to have edit options (create, delete)

Label

Renders a label, so properties of this view will be readonly

Renders a URL that can be visited.

Config

The link requires additional configuration.

  • The URL of the link you want to display

Map

Renders a google map

Config

The map requires additional configuration.

  • A google maps api key

  • Where the map should center on on init

    [UIOMaticField(Description = "Example map property", View = UIOMatic.Constants.FieldEditors.Map, Config = "{'apiKey' : 'GOOGLEMAPSAPIKEY', 'center', ''}")] public string Map { get; set; }

Media Picker

Renders an Umbraco media picker (will store the id of the selected media item)

Member Picker

Renders an Umbraco member picker (will store the id of the selected member)

Number

Renders a number input

Password

Renders a password input

Radiobuttonlist

Renders a group of radiobuttons

Config

The radiobuttonlist requires additional configuration.

  • The alias of the type that will be used to populate the dropdown

  • The column used for the value of the item

  • The column used for the text of the item

  • The column used for sorting

  • The template used for the text of the item

Richt Text Editor

Renders a richt text editor

Textarea

Renders a textarea

Textfield

Renders a text input

User Picker

Renders a user picker

Multiple User Picker

Renders a multiple user picker

Last updated

Was this helpful?