-
Notifications
You must be signed in to change notification settings - Fork 5
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
First Project snippets #16
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,80 @@ | |||
id: ciz79iwgk0000456w9wch1l0m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to id: ''
@@ -0,0 +1,80 @@ | |||
id: ciz79iwgk0000456w9wch1l0m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change filename to get-project-information
getField(index++); | ||
} | ||
else { | ||
onError(result.error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use console.log(result.error)
} | ||
} | ||
|
||
function onError(error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
date | ||
script: | ||
content: | | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove 2 blank lines
@@ -0,0 +1,48 @@ | |||
id: ciz78veu00000456sgv494kcb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id: ''
content: |- | ||
$('#run').click(run); | ||
|
||
function run() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run -> getTaskGUID
if (asyncResult.status === Office.AsyncResultStatus.Failed) { | ||
console.log(asyncResult.error.message); | ||
} else { | ||
console.log('Selected task GUID is ' + asyncResult.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
task -> task's
language: css | ||
template: | ||
content: |- | ||
<button id="run" class="ms-Button"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add short description
template: | ||
content: |- | ||
<button id="run" class="ms-Button"> | ||
<span class="ms-Button-label">Run</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run -> Get task GUID
I've added 2 snippets for Project.