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

No option to hide upload button in v4.1 #1383

Closed
xinfli opened this issue Nov 21, 2018 · 1 comment
Closed

No option to hide upload button in v4.1 #1383

xinfli opened this issue Nov 21, 2018 · 1 comment
Assignees
Labels
front-burner p2 Nice to have size-s 1 days or less

Comments

@xinfli
Copy link

xinfli commented Nov 21, 2018

An option "showUploadButton" was added to hide upload button for issue #883, but in v4.1.0 there is no such option.

So now is it possible to hide the upload button on rederWebChat()?

@vmunnuru
Copy link

vmunnuru commented Dec 5, 2018

Its possible with styling:

import { createStyleSet } from 'botframework-webchat';

const styleSet = createStyleSet({});

styleSet.uploadButton = { ...styleSet.uploadButton,
  display: 'none'
};
(while returning send property to the component as)
styleSet={styleSet}

(Edited by @compulim for code formatting)

@corinagum corinagum self-assigned this Dec 7, 2018
@corinagum corinagum added the size-s 1 days or less label Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-burner p2 Nice to have size-s 1 days or less
Projects
None yet
Development

No branches or pull requests

3 participants