Global

Members

fn :Object.<string, function()>

Plugins that will be used when new `Dollarsign` instances are created. You can add plugins to this list by adding their implementations as members.
Source:
Type:
  • Object.<string, function()>
Example
import $ from "dollarsign"

$.fn.myPlugin = () => "foo"

$(document).myPlugin() // => "foo"

Methods

$(selector, scope) → {Dollarsign}

Create a new Dollarsign object using the given selector and scope. If no scope is provided, use the `document` to get the global page scope.
Author:
Source:
Parameters:
Name Type Description
selector string Query to run for selecting elements.
scope EventTarget DOM to manipulate. Default: `document`.
Returns:
Type:
Dollarsign
the object created from selector and scope.
Example
import $ from "dollarsign"

$(document).on("ready", async () => {
  await $("#test").load("https://example.com")
  $("#test").
});