Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6982083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:14:29+00:00 2026-05-27T18:14:29+00:00

How do you make Dojo BusyButton properties persist after the cancel method is invoked?

  • 0

How do you make Dojo BusyButton properties persist after the cancel method is invoked?

In my parent class, I create a button like this.

this.saveButton = new dojox.form.BusyButton({
    'iconClass' : "dijitIconSave"
    , 'label': 'Save'
    , 'busyLabel': 'Saving...'
    , 'timeout': 30000
})

Then in my child class, I change some properties.

this.saveButton.set('label', 'Add');
this.saveButton.set('busyLabel', 'Adding...');
this.saveButton.set('timeout', 2000);

The button looks like this:

enter image description here

Great. But after I run this.saveButton.cancel();

The button reverts to:

enter image description here

Why aren’t the properties that I’ve set persist beyond this.saveButton.cancel()?

What’s the best way to stop the busy animation without resetting the BusyButton properties to their original values?

UPDATE:

I had a look at the BusyButton code and the cancel method sets the label by running this.setLabel(this._label);. Shouldn’t that be this.setLabel(this.label);? I don’t like accessing private variables but for now this is my workaround.

this.saveButton.set({
    _label: 'Add'
    , label: 'Add'
    , busyLabel: 'Adding...'
    , timeout: 5000
})

Is this a Dojo bug or am I doing it wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:14:30+00:00Added an answer on May 27, 2026 at 6:14 pm

    It’s a known bug. See http://bugs.dojotoolkit.org/ticket/10644

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To make a JavaScript class with a public method I'd do something like: function
Is it possible to make another dojo.data.ItemFileWriteStore out of the properties of items from
I made code like this, to easier connecting callbacks on events: dojo.ready(function() { for(var
I want to create stencils like Dojo.GUI for Evolus Pencil . But its inbuilt
How can I make dojo textbox dijit to remember previously entered values, like a
To make click-able divs, I do: <div class=clickable url=http://google.com> blah blah </div> and then
I am having trouble wrapping my head around how to make a Dojo Deferred
I'd like to change the data in my dojo.data.ItemFileWriteStore. Currently I have... var rawdataCacheItems
Im new to Dojo and im trying to make some ui, but only using
I am new to DoJo development so this could be basic. I have created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.