Table of Contents
Render methods
The render method allows you to customize how content is displayed and edited in Val Studio. By changing the render configuration, you can provide a better editing experience for content editors.
Textarea for strings
Sometimes you want something that is not richtext but still multiple lines. Simple descriptions or even code blocks for example. Use render({ as: "textarea" }) to change the input to a multi-line textarea, making it easier to edit longer text content.
List view for records
When working with records of objects, you can use render({ as: "list" }) to display items as a nice looking list with thumbnails. This makes it much easier for editors to navigate and edit collections of content.
Basic list view
The select() function determines what information is displayed in the list view. You can show a title, subtitle, and image for each item.
List view benefits
Using list view makes it significantly easier for editors to browse and manage collections. Instead of navigating through a tree of items, editors see a visual list with thumbnails and key information at a glance.
Customizing list display
The select() function receives the current value in the val parameter. You can return any combination of title, subtitle, and image. Both subtitle and image are optional.