ice-js | small framework | Frontend Framework library
kandi X-RAY | ice-js Summary
kandi X-RAY | ice-js Summary
Ice is a small framework for making performant single-page javascript applications easier to build
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ice-js
ice-js Key Features
ice-js Examples and Code Snippets
Community Discussions
Trending Discussions on ice-js
QUESTION
I'm developing an office-js add-in that needs to run automatically (without user interaction) every time any Excel document starts. I have configured it to use a shared runtime. This capability exists for VSTO add-in which load when Excel starts but seems to be missing for Office-js addins.
I only found two possible solutions, but they don't work that well:
- When the add-in runs for the first time in a document, set
Office.addin.setStartupBehavior(Office.StartupBehavior.load)
so that the add-in loads automatically for the document.
Issue: the add-in needs to be manually inserted once (the user needs to click on the add-in ribbon once per document). This setting only applies to the current document. Not practical since users first need to interact with the add-in for every new document.
- As Excel opens a new document, use a VSTO add-in to insert the add-in by editing the document using OpenXML following this article https://docs.microsoft.com/en-us/office/dev/add-ins/develop/run-code-on-document-open.
Issue: Excel blocks I/O for documents as they are opened. For local documents, I found a way to write onto them as Excel writes on them, but when the documents are saved on OneDrive, any stream with ReadWrite attributes can't get access. So this solution is not working very well.
Is there a workaround possible?
...ANSWER
Answered 2021-Jun-06 at 19:14No, there is no other way to get Excel web add-ins loaded automatically.
QUESTION
When I press the button to display the task pane, I am seeing the following error message in the console window which I cannot remove or explain ?
...ANSWER
Answered 2021-May-21 at 21:57Can you try using this using lowercase o when referencing the office.js url - src="appsforoffice.microsoft.com/lib/beta/hosted/office.js"
This could be due to a case sensitive string comparison bug, which we will fix. You should be able to workaround it by using the lowercase office.js.
QUESTION
So I'm new to Blazor and I've just found out about CascadingValue and their possible use for showing error messages. I am creating an Outlook Add In for saving mails and attachments in Sharepoint, so I'm dynamically retrieving the current Outlook mail using Office-js and JSInterop, such that my Add In always uses the selected mail. But now that I'm trying to implement a cascading component for error messages I've run into problems with StateHasChanged.
Following code is my cascading error component:
...ANSWER
Answered 2021-May-12 at 11:50After my first edit, I found out it was indeed a problem with instances, since I'm overwriting a static Action within OnInitialized, each time it creates a new instance, the old instances no longer works. And the code which returned the error happened to have a auth dialog with a redirect callback to the same page, it closes directly after, but loading the page actually creates a new instance of my component, which in turn invalidates the one my user works with. So I'll probably just have to create a singleton service that handles the incoming mail data, so that my component can always access the correct data.
QUESTION
I'm currently trying to implement some automations for an Excel Workbook. Part of it is to set a common header for all sheets in that workbook.
The header should look like this: Screenshot of the aimed header style and content
I found here question (52295459) how to access the headers, but i did not manage to format them. The code snippet is attached below. I read the documentation for the footerHeader class and for the references format codes. But I'm stuck.
So, these are my questions:
- Is it possible to set a header for all sheets in a workbook in a more general way, than accessing each by
getItem
and their name? - How can I change the font color to #5E5E5E?
I tried with
&5E5E5E
,&c5E5E5E
,&color5E5E5E
,E5E5E
,&K5E5E5E
,&K"5E5E5E"
- but nothing worked. Edit: I want to change the colour of the header section. - I only need to adjust the center section of the header and may keep the content of left and right sections. However, if the left and right sections are not empty, whatever I specify in the center section will be attached to the end of the right section (attached string "center" wrongfully to right section). Is there a way to keep the left and right section and only change the center section?
- If not: How can I insert the logo as an image and maybe format the height/width of it?
The working part of the code so far:
...ANSWER
Answered 2021-Apr-28 at 02:40Thanks post the question here.
Currently it's not possible to set header and footer for all sheet with one API, this might be one new request.
var worksheet = context.workbook.worksheets.getItem("Sheet7"); var range = worksheet.getRange("A1"); range.format.font.color = "5e5e5e";
can help set colorcannot repro, tried set middle header when left and right header are set, it works good in win32, so which platform do you hit?
Sorry to let you know the image is not supported yet in api level, you can submit new request Click here!
QUESTION
After loading a spreadsheet that contains a cell with a custom function reference, the custom function appears to be loaded twice. Can this be avoided?
To reproduce the issue for Excel Desktop:
Create a folder and run
yo office --projectType excel-functions --name 'TestAddin' --host excel --js
Change to folder
TestAddIn
and runnpm run build
, thennpm start
Allow some time for the plugin to compile and Excel to start, then select a spreadsheet cell and type
=CONTOSO.INCREMENT(1)
into the Excel formula bar. PressEnter
.You should now see the cell showing incrementing values.
Save the spreadsheet and close Excel.
Re-open the spreadsheet.
Over time, the cell shows:
...ANSWER
Answered 2021-Apr-28 at 22:31This particular issue seems to be related to running the example under the debugger, see: https://github.com/OfficeDev/office-js/issues/1714
QUESTION
Is there way to set/change Mailbox.Item (https://docs.microsoft.com/en-us/javascript/api/outlook/office.mailbox?view=outlook-js-1.9#item) icon or anyhow mark Mailbox.Item from Office.Context so it is clearly visible from the overview?
I have searched the internet and found solutions that do not include Office-js at all. Maybe some workaround with setting Messageclass via EWS call and creating FormRegion, but I need it to be done via the Office-js web add-in.
This is the best lead I found Can i add custom icon to "outlook" item?
...ANSWER
Answered 2021-Mar-16 at 17:55OfficeJS doesn't provide anything for that. But you may try to call EWS from your web add-in, see Call web services from an Outlook add-in for more information, where you could set up the PR_ICON_INDEX
property value. For example, here is the C# sample code which uses Exchange Web Services for setting up an icon:
QUESTION
I want to run a script when I receive a new email in Outlook for Office365. Is there any solution in [office-js]?
Instead of checking to receive new emails, I can read new emails every minute and run the script. In Google Apps Script (GAS), there is the Trigger that you can run a script every minute. Is there a similar feature in [office-js]?
...ANSWER
Answered 2021-Apr-27 at 19:04Outlook web add-ins currently work only in the context of an item. So, OfficeJS
doesn't provide built-in mechanisms for handling incoming items like VSTO does using the NewMailEx
event. You may consider using Graph API, see Use the Microsoft Graph API to get change notifications for more information.
QUESTION
I hope I can get some help on this. I have a Custom outlook addin
When the addin is pinned on both read and compose. One of the instances of the office-js app I'm running takes control of the taskpane and does not relinquish event handling for the keyboard or mouse.
The problem occurs when I have both the compose and read addins pinned.
- Both the Read and Compose version of the addin are pinned.
- Click on a read email and the addin loads up the email settings.
- Click fwd on the email. A new compose window displaces the read window and the addin updates its view to the compose version
- The compose version of the addin is frozen I cannot interact.
- click back to the read version and close the pinned addin.
- go back to the draft previously created and the addin now works.
It seems like they're fighting for control of the webview in the taskpane if both are pinned.
Is there a way to force the taskpane to reload to the active instance of the addin.
Hopefully, I explained it correctly.
...ANSWER
Answered 2021-Feb-25 at 20:29Received this from the Outlook Addin Team
Got it. The version is for old Microsoft Edge. The change for addins to use the new Microsoft Edge has not been fully rolled out. It appears you are hitting the issue of add-in becoming non-responsive in old Microsoft Edge. It has been put on our backlog. We, unfortunately, have no timelines to share at this point –
QUESTION
I am working upon an outlook add-in and I am trying to get SSO token to call Graph API. I am referring this link to develop my addin Outlook addin SSO. I registered my App in Azure AD (multi-tenant). and followed everything step by step
I added version override to Manifest
...ANSWER
Answered 2021-Apr-20 at 16:56Solved ! After hours of brainstorming , I am able to resolve this error by revisting the document again. I overlooked step 12 of https://docs.microsoft.com/en-us/office/dev/add-ins/develop/register-sso-add-in-aad-v2
QUESTION
I can access Message (mail) and Appointment objects via the office-js library and show the add-in button within these objects to show the pane.
Is there any way how to show the pane in the Task object window?
Thank you for any hint. I suppose it is not just supported now and I will have to manage Tasks via Graph API. https://docs.microsoft.com/en-us/graph/overview
...ANSWER
Answered 2021-Mar-17 at 18:20Currently, add-ins are not supported on Task items, only appointments and mail messages. We track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered, when we go through our planning process.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ice-js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page