Last active
August 29, 2015 14:26
-
-
Save Benunc/437452b036d5b10fa72a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editor.windowManager.open( { | |
title: 'A popup dialog', | |
body: [ | |
{ | |
type: 'textbox', | |
name: 'text1', | |
label: 'enter your text', | |
multiline : true, | |
minHeight : 60, | |
}, | |
{ | |
type: 'container', | |
html: String( text1.length() ), | |
label: 'This changes dynamically based on length of text entered above', | |
} | |
], |
I added an onchange: function() {...}
block to the end of the textbox to declare a variable that I then call within the html: String()
function. Not working yet.
I think you need to have the function to count outside of the window manager, and call it, targeting the class or ID of the text field
and then call that function inside of the html:
block, or in the textbox with an onchange:
or something?
I'm gonna put my actual plugin code with the new stuff up here, so that it becomes clearer.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've also tried
this.text1.length()
andstr.length(text1)
among other things. Is what I am trying to do even possible?