Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override default message with manual calls? #103

Open
razblack opened this issue May 13, 2016 · 0 comments
Open

How to override default message with manual calls? #103

razblack opened this issue May 13, 2016 · 0 comments

Comments

@razblack
Copy link

I have setup in my app config a default message for all blockUI.start(); calls.

However, i have a few cases where I would like to override that message when I need to manual block an element or for something special.

// Get the reference to the block service.
var myBlockUI = blockUI.instances.get('myBlockUI');

// Start blocking the element.
myBlockUI.start();

when I pass in a message to the myBlockUI.start('my special messsage');

it does not seem to override the default message I have configured :(

when I instantiate my var, do I also need to set something like:
var myBlockUI = blockUI.instances.get('myBlockUI');
myBlockUI.message = 'my special message';

so when myBlockUI.start(); is called, the default gets overridden?

I've tried that, but it doesn't seem to work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant