mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
2.8 KiB
JavaScript
2 lines
2.8 KiB
JavaScript
|
/*! For license information please see 76a03493.d0993e34.js.LICENSE.txt */
|
||
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[62467],{64216:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>u,frontMatter:()=>s,metadata:()=>c,toc:()=>a});var n=r(85893),o=r(11151);const s={sidebar_label:"FileChooser.cancel"},i="FileChooser.cancel() method",c={id:"api/puppeteer.filechooser.cancel",title:"FileChooser.cancel() method",description:"Closes the file chooser without selecting any files.",source:"@site/../docs/api/puppeteer.filechooser.cancel.md",sourceDirName:"api",slug:"/api/puppeteer.filechooser.cancel",permalink:"/next/api/puppeteer.filechooser.cancel",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"FileChooser.cancel"},sidebar:"api",previous:{title:"FileChooser.accept",permalink:"/next/api/puppeteer.filechooser.accept"},next:{title:"FileChooser.isMultiple",permalink:"/next/api/puppeteer.filechooser.ismultiple"}},l={},a=[{value:"Signature:",id:"signature",level:4}];function p(e){const t={code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"filechoosercancel-method",children:"FileChooser.cancel() method"}),"\n",(0,n.jsx)(t.p,{children:"Closes the file chooser without selecting any files."}),"\n",(0,n.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-typescript",children:"class FileChooser {\n cancel(): Promise<void>;\n}\n"})}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,n.jsx)(t.p,{children:"Promise<void>"})]})}function u(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},75251:(e,t,r)=>{var n=r(67294),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,r){var n,s={},a=null,p=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(p=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:o,type:e,key:a,ref:p,props:s,_owner:c.current}}t.Fragment=s,t.jsx=a,t.jsxs=a},85893:(e,t,r)=>{e.exports=r(75251)},11151:(e,t,r)=>{r.d(t,{Z:()=>c,a:()=>i});var n=r(67294);const o={},s=n.createContext(o);function i(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]);
|