Returns a selection object that lazily represents a method with the name within the treespace element (or document). Invoking [call]AttrSelector#get will call the corresponding method on the element selected with the key argument.

This is used as the target of the proxy object returned by method

Example

import { MethodSelector } from 'deleight/proxy/selector';
document.body.innerHTML = `
<div>I am a div</div>
<p>I am a paragraph</p>
<section>I am a section</section>
<article>I am an article</article>
`;
const slct = new MethodSelector('remove', document.body);
slct.call('section');
console.log(document.querySelector('section')); // null

Hierarchy (view full)

Constructors

Properties

#proxy?: any
#proxy?: any
name: string
treespace?: Element

Methods