puppeteer/assets/js/da08526b.8c91b523.js

2 lines
3.4 KiB
JavaScript
Raw Normal View History

/*! For license information please see da08526b.8c91b523.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[48742],{56614:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>s,default:()=>d,frontMatter:()=>i,metadata:()=>o,toc:()=>l});var r=t(85893),a=t(11151);const i={sidebar_label:"Page.isDragInterceptionEnabled"},s="Page.isDragInterceptionEnabled() method",o={id:"api/puppeteer.page.isdraginterceptionenabled",title:"Page.isDragInterceptionEnabled() method",description:"Warning: This API is now obsolete.",source:"@site/../docs/api/puppeteer.page.isdraginterceptionenabled.md",sourceDirName:"api",slug:"/api/puppeteer.page.isdraginterceptionenabled",permalink:"/next/api/puppeteer.page.isdraginterceptionenabled",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Page.isDragInterceptionEnabled"},sidebar:"api",previous:{title:"Page.isClosed",permalink:"/next/api/puppeteer.page.isclosed"},next:{title:"Page.isJavaScriptEnabled",permalink:"/next/api/puppeteer.page.isjavascriptenabled"}},p={},l=[{value:"Signature:",id:"signature",level:4}];function c(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"pageisdraginterceptionenabled-method",children:"Page.isDragInterceptionEnabled() method"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:"Warning: This API is now obsolete."}),"\n",(0,r.jsxs)(n.p,{children:["We no longer support intercepting drag payloads. Use the new drag APIs found on ",(0,r.jsx)(n.a,{href:"/next/api/puppeteer.elementhandle",children:"ElementHandle"})," to drag (or just use the ",(0,r.jsx)(n.a,{href:"./puppeteer.page.mouse.md",children:"Page.mouse"}),")."]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"true"})," if drag events are being intercepted, ",(0,r.jsx)(n.code,{children:"false"})," otherwise."]}),"\n",(0,r.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-typescript",children:"class Page {\n abstract isDragInterceptionEnabled(): boolean;\n}\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,r.jsx)(n.p,{children:"boolean"})]})}function d(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},75251:(e,n,t)=>{var r=t(67294),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function l(e,n,t){var r,i={},l=null,c=null;for(r in void 0!==t&&(l=""+t),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(c=n.ref),n)s.call(n,r)&&!p.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:a,type:e,key:l,ref:c,props:i,_owner:o.current}}n.Fragment=i,n.jsx=l,n.jsxs=l},85893:(e,n,t)=>{e.exports=t(75251)},11151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>s});var r=t(67294);const a={},i=r.createContext(a);function s(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);