Durchsuchbare Dokumentation aufrufen | Zurück zur Dokumentationsübersicht
Navigation: Dokumentationen agorum core > agorum core für Entwickler > agorum core aguila
Dieses Widget wird als editierbares HTML angezeigt.
let aguila = require('common/aguila');
let htmlInput = aguila.create({
height: 300,
width: 500,
type: 'agorum.htmlInput'
});
htmlInput;
keine
| Wert | Beschreibung |
|---|---|
| true | Versetzt den HTML-Editor in einen Lesemodus und blendet dessen Toolbar aus. |
| false (Standard) | Der HTML-Editor ist benutzbar. |
keine
// Requirements
let aguila = require('common/aguila');
// Create text area widget
let htmlInput = aguila.create({
height: 300,
width: 500,
value: '<h1>Hallo Welt<h1>',
type: 'agorum.htmlInput',
});
// Listen for changes on the content
htmlInput.on('valueChanged', value => {
console.log('Value: ', value);
});
// Provide widget to the user
htmlInput;