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

Pushing appModule changes for registerFocusChangeHandler #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"build-anand": "webpack -o public/anandnat/app.js",
"build-chharpe": "webpack -o public/chharpe/",
"build-erinha": "webpack -o public/erinha",
"build-saket": "webpack -o public/saket",
"watch": "webpack -w",
"start": "node server.js"
},
Expand Down
115 changes: 0 additions & 115 deletions public/app.css

This file was deleted.

1,111 changes: 0 additions & 1,111 deletions public/app.js

This file was deleted.

1 change: 0 additions & 1 deletion public/app.js.map

This file was deleted.

57 changes: 0 additions & 57 deletions public/index.html

This file was deleted.

1,137 changes: 1,137 additions & 0 deletions public/saket/app.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/saket/app.js.map

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,34 @@ export const initializeAppModules = () => {
}
});

addModule({
name: "registerFocusChangeHandler",
initializedRequired: true,
hasOutput: true,
action: function (output) {
microsoftTeams.registerFocusChangeHandler(function () {
output("OnFocusChange Event received");
});
}
});

addModule({
name: "registerBackButtonHandler",
initializedRequired: true,
hasOutput: true,
action: function (output) {
output("total States: " + totalStates);
microsoftTeams.registerBackButtonHandler(function () {
if (totalStates > 0) {
totalStates--;
output("back button clicked. total remaining state: " + totalStates);
return true;
}
return false;
});
}
});


addModule({
name: "registerChangeSettingsHandler",
Expand Down