Table of contents
Creating custom components
Developers can easily extend the functionality of the page editor in Veva by writing custom components which users can use to build content.
Decorating the component with optional attributes
When you were adding your custom component to a page, you might have noticed that it showed up under "**Uncategorized**" and that it's name was just the same as the name of the Razor component file. It also had a very generic cog icon. We can easily change all that by decorating the component using optional attributes, both using standard .NET attributes and some Veva specific ones.
Adding user-configurable properties
Unless your component is really simple, you might want it to have some user configurable properties. Adding such properties to a component is as simple as adding public properties to the component.
Creating components which can accept and host other components
Some components in Veva can contain other components, such as the grid and tab components. What if you want to write your own "container" component? Fortunately, that's really simple to do. Let's create one custom component now which can do just that. We will call it "CustomPanel" and it will allow the user to specify a heading text, a description text and then an area which other components can be added to.