OWL
forms
Property Text
Odoo 19 OWL component — Property Text (views)
Live preview
Interactive
Source excerpt
web/static/src/views/fields/properties/property_text.js
import { useAutoresize } from "@web/core/utils/autoresize";
import { Component, useRef } from "@odoo/owl";
export class PropertyText extends Component {
static template = "web.PropertyText";
static props = {
updateProperty: Function,
value: String,
};
setup() {
this.textareaRef = useRef("textarea");
useAutoresize(this.textareaRef);
}
}
Registry / API
- Registry name
PropertyText- Category
—- Module
web- Slug
property-text- Nav group
forms