Re-render screen after clicking on example box in README
It seems like this is necessary for your example to work. Is there a way to re-render a portion of the screen instead of the entire thing?
This commit is contained in:
parent
1d562debc9
commit
a39092df49
|
@ -98,6 +98,7 @@ screen.append(box);
|
||||||
|
|
||||||
box.on('click', function(data) {
|
box.on('click', function(data) {
|
||||||
box.setContent('{center}Some different {red-fg}content{/red-fg}.{/center}');
|
box.setContent('{center}Some different {red-fg}content{/red-fg}.{/center}');
|
||||||
|
screen.render();
|
||||||
});
|
});
|
||||||
|
|
||||||
screen.on('keypress', function(ch, key) {
|
screen.on('keypress', function(ch, key) {
|
||||||
|
|
Loading…
Reference in New Issue