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

[DOCS] Make scrollbar API reference docs public #1730

Merged
merged 1 commit into from Nov 4, 2019
Merged

Conversation

willeastcott
Copy link
Contributor

Fixes #1729.

I confirm I have signed the Contributor License Agreement.

@willeastcott willeastcott merged commit 323f362 into master Nov 4, 2019
@willeastcott willeastcott deleted the docs-scrollbar branch November 4, 2019 12:33
@ElsaMeng
Copy link

ElsaMeng commented Jan 4, 2020

if(this.entity.scrollbar){
this.app.on('set:value',function(value){
this.updateValue(value);
});
}

@ElsaMeng
Copy link

ElsaMeng commented Jan 4, 2020

hello, guys,I already make a scrollbar, but u see up there,when I grab the handle to change the value, it doesn't execute the function.I am confused.So how to use the event 'set:value'.Please help.Thanks a lot.

@willeastcott
Copy link
Contributor Author

I think you mean to do:

if (this.entity.scrollbar) {
    this.entity.scrollbar.on('set:value', function (value) {
        this.updateValue(value);
    });
}

@ElsaMeng
Copy link

ElsaMeng commented Jan 7, 2020

it works.Thanks again :)

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

Successfully merging this pull request may close these issues.

[DOCS] Scrollbar component is undocumented
3 participants