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

First Project snippets #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

hocull
Copy link

@hocull hocull commented Feb 15, 2017

I've added 2 snippets for Project.

@@ -0,0 +1,80 @@
id: ciz79iwgk0000456w9wch1l0m
Copy link
Collaborator

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
Copy link
Collaborator

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);
Copy link
Collaborator

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) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

date
script:
content: |

Copy link
Collaborator

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
Copy link
Collaborator

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() {
Copy link
Collaborator

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);
Copy link
Collaborator

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">
Copy link
Collaborator

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>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run -> Get task GUID

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

Successfully merging this pull request may close these issues.

2 participants