I use library "jointjs" in nodejs. So now I want to add placeholder change for text "hello". Can you help me? Please.
var Rectangle = Element$1.define('standard.Rectangle', {
attrs: {
body: {
refWidth: '100%',
refHeight: '100%',
strokeWidth: 2,
stroke: '#000000',
fill: '#FFFFFF'
},
label: {
textVerticalAnchor: 'middle',
textAnchor: 'middle',
refX: '50%',
refY: '50%',
fontSize: 14,
fill: '#333333',
text: "hello", //Change to placeholder
}
}
}, {
markup: [{
tagName: 'rect',
selector: 'body',
}, {
tagName: 'text',
selector: 'label'
}]
});
question from:https://stackoverflow.com/questions/65640760/how-to-add-placeholder-for-standard-rectangle-in-jointjs