第一个参数是要打开的页面 URL。 第二个参数用于传递选项。 height 和width 是Office 应用程序窗口大小的百分比。 JavaScript 复制 Office.context.ui.displayDialogAsync( 'https://localhost:3000/popup.html', {height: 45, width: 55}, // TODO2: Add callback parameter. ); 处理对话框发送的消息并关...
Note that if the insertDefaultGist function determines the add-in hasn't yet been configured, it adds the ?warn=1 parameter to the dialog URL. Doing so makes the settings dialog render the message bar that's defined in ./src/settings/dialog.html, to tell the user why they're seeing ...
You have to provide the "id" parameter. This would also be your way to identify the button in case you are using more then on function while using the same custom function. You have to provide the "toggle" parameter. This will determine whether the button will toggle his state active sta...
Open the file./src/commands/commands.jsand replace the entire contents with the following code. If theinsertDefaultGist()function determines the add-in hasn't yet been configured, it adds the?warn=1parameter to the dialog URL. Doing so makes the settings dialog render the message bar that'...
Inentitiesandglancecards,each entity can have options. Those elements can be styled individually by adding acard_modparameter to the entity configuration. For those cases, the styles are injected into a shadowRoot, and the bottommost element is thus accessed through:host. ...
Add highlighting to the suggestions We can improve the appearance of the suggestions to the user by setting thehighlightsparameter to true. However, first we need to add some code to the view to display the bolded text. In the view (index.cshtml), add the following script after the"azureau...
You can accomplish additional installation tasks using the Silverlight.js helper file. For more information, see theSilverlight.js Reference. Procedures To embed the plug-in Use the createObject function and specify parameter values as shown in the following example. ...
You can choose from a country list if the parameter exists in the geocoder. Batch geocoded results will be stored in your current workspace folder as a separate CSV or TXT file and named with a unique ID. GPX file GPX is an XML data format maintained by TopoGrafix for saving the ...
To view this example in your Web browser window, you must specify a valid Silverlight application package in the source parameter. For more information, see How to: Create a New Silverlight Project. Code Copy <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3...
Parameter Description callbackUrl The URL of the application server to which OSS sends the request. callbackHost The Host header that is included in the request sent by OSS to the application server. callbackBody The content that OSS sends to the application server. If you upload a non-image...