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

Add new button in the menu #398

Open
nnguyen168 opened this issue Jan 8, 2018 · 0 comments
Open

Add new button in the menu #398

nnguyen168 opened this issue Jan 8, 2018 · 0 comments

Comments

@nnguyen168
Copy link

Hi all,
I am totally new to Javascript MVVM as well as knockout and all that. I just want to ask where to modify the template to add a new button besides the ones such as Save, Test, and Download. In the creation of a plugin

var commandsPlugin = function (viewModel) {

viewModel.save = saveCmd; viewModel.test = testCmd; viewModel.download = downloadCmd;

What if I want to add a new attribute (I am not sure what it's called) for viewModel, for example viewModel.textEdit = textEditCmd;, how can I do that? Many thanks

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