File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -498,10 +498,30 @@ javaxt.dhtml.Button = function(parent, config) {
498498 //**************************************************************************
499499 //** getText
500500 //**************************************************************************
501- /** Returns the button label.
501+ /** Returns the button label. Same as getLabel().
502502 */
503503 this . getText = function ( ) {
504- return label . innerHTML ;
504+ return me . getLabel ( ) ;
505+ } ;
506+
507+
508+ //**************************************************************************
509+ //** getLabel
510+ //**************************************************************************
511+ /** Returns the button label.
512+ */
513+ this . getLabel = function ( ) {
514+ return label . innerText ;
515+ } ;
516+
517+
518+ //**************************************************************************
519+ //** setLabel
520+ //**************************************************************************
521+ /** Used to update the button label.
522+ */
523+ this . setLabel = function ( str ) {
524+ label . innerText = str + "" ;
505525 } ;
506526
507527
You can’t perform that action at this time.
0 commit comments