Skip to content

Add new button in the menu #398

Open
@nnguyen168

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions