Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ayo Adesina 445 posts 1059 karma points
    Sep 10, 2017 @ 10:21
    Ayo Adesina
    0

    Umbraco.NoEdit - What view does Umbraco Use?

    Hi guys,

    I'm creating a custom section in Umbraco, one of my aims when creating this custom section was to reuse all the umbraco editors unless I was doing something that needed me to create my own.

    I have created a generic method to build each editor. For each editor in a custom view I pass in the property editor definition.

    Like this:

    {
                editor: 'Umbraco.DropDown',
                label: "Label Here",
                description: "description here",
                hideLabel: false,
                view: "dropdown",
                alias: alias,
                value: null,
                validation: {
                    mandatory: mandatory,
                    pattern: ""
                },
                config: config
            };
    

    The problem is I want to reuse umbraco's label property editor "Umbraco.NoEdit" but I cant find/work out what I should be passing for view....

    Any ideas? is there a list somewhere in the docs that gives an example of what each property editors config value should be.

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Sep 10, 2017 @ 11:18
  • John Bergman 483 posts 1132 karma points
    Sep 10, 2017 @ 16:58
    John Bergman
    0

    I use a "Label" in cases were I need something readonly

Please Sign in or register to post replies

Write your reply to:

Draft