Package JQ - CommonLisp JSCL (Moren edition) wrap for JQuery library.
In the release all files have the following names:
<package>:<prefix><function-ename>
<package> ::= jq
<prefix> ::= [q] | [qui]
<function-name> ::= {dot} function-name as used at JQuery
So: JS-function .next
this is a lisp name (jq:[q].next)
or ([q].next)
Next function from demo https://jqueryui.com/droppable/#photo-manager
function recycleImage( $item ) {
$item.fadeOut(function() {
$item
.find( "a.ui-icon-refresh" )
.remove()
.end()
.css( "width", "96px")
.append( trash_icon )
.find( "img" )
.css( "height", "72px" )
.end()
.appendTo( $gallery )
.fadeIn();
});
}
can be implemented as
(defun recycle-image ($item)
(let* ((fade-out-fn
(lambda ()
(funcall
(chain (rcurry #'[q].find "a.ui-icon-refresh")
#'[q].end
(rcurry #'[q].css "height" "72px")
(rcurry #'[q].append trash_icon)
(rcurry #'[q].find "img")
(rcurry #'[q].css "height" "72px")
#'[q].end
(rcurry #'[q].append-to $gallery)
#'[q].fade-in)
$item))))
(jq:fade-out fade-out-fn)))
Сompiles only in the environment JSCL (Moren edition) Electron
JQuiery version 1.8.3
All Function comments are from https://api.jquery.com & https://api.jqueryui.com/
Location:
Adds the specified class(es) to each element in the set of matched elements.
Determine whether any of the matched elements are assigned the given class.
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
Add or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the state argument.
Location:
Get the current computed height for the first element in the set of matched elements or set the height of every matched element.
Get the current computed inner height (including padding but not border) for the first element in the set of matched elements or set the inner height of every matched element.
Get the current computed inner width (including padding but not border) for the first element in the set of matched elements or set the inner width of every matched element.
Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements or set the outer height of every matched element.
Get the current computed outer width (including padding, border, and optionally margin) for the first element in the set of matched elements or set the outer width of every matched element.
Get the current computed width for the first element in the set of matched elements or set the width of every matched element.
Location:
Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
Wrap an HTML structure around each element in the set of matched elements.
Wrap an HTML structure around all elements in the set of matched elements.
Wrap an HTML structure around the content of each element in the set of matched elements.
Location:
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
Insert every element in the set of matched elements to the end of the target.
Get the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element.
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
Insert every element in the set of matched elements to the beginning of the target.
Get the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements.
Location:
Insert content, specified by the parameter, after each element in the set of matched elements.
Insert content, specified by the parameter, before each element in the set of matched elements.
Insert every element in the set of matched elements after the target.
Insert every element in the set of matched elements before the target.
Location:
Remove the set of matched elements from the DOM.
Remove all child nodes of the set of matched elements from the DOM.
Remove the set of matched elements from the DOM.
Location:
Replace each target element with the set of matched elements.
Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
Location:
Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
Get the value of a property for the first element in the set of matched elements or set one or more properties for every matched element.
Remove an attribute from each element in the set of matched elements.
Remove a property for the set of matched elements.
Get the current value of the first element in the set of matched elements or set the value of every matched element
Location:
Reduce the set of matched elements to the one at the specified index.
.even() [+] Reduce the set of matched elements to the even ones in the set, numbered from zero.
Reduce the set of matched elements to those that match the selector or pass the function’s test.
Reduce the set of matched elements to the first in the set.
Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
Reduce the set of matched elements to the final one in the set.
Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.
Remove elements from the set of matched elements.
Reduce the set of matched elements to the odd ones in the set, numbered from zero.
Reduce the set of matched elements to a subset specified by a range of indices.
Location:
Create a new jQuery object with elements added to the set of matched elements.
Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
Get the children of each element in the set of matched elements, including text and comment nodes.
End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
Location: traversing/travers.lisp
Get the children of each element in the set of matched elements, optionally filtered by a selector.
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
Location:
Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
Get the closest ancestor element that is positioned.
Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
Get the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector.
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector, in the reverse document order.
Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
Location: efects/fadding
Display the matched elements by fading them to opaque.
Hide the matched elements by fading them to transparent.
Adjust the opacity of the matched elements.
Display or hide the matched elements by animating their opacity.
Widgets are feature-rich, stateful plugins that have a full life-cycle, along with methods and events. Check out the widget factory documentation for more details.
Location: ui/
Convert a pair of headers and content panels into an accordion.
Autocomplete enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.
Themeable buttons.
Themeable button sets.
Converts inputs of type radio and checkbox to themeable buttons.
Themeable set of input widgets.
Select a date from a popup or inline calendar
Location: dialog.lisp
Open content in an interactive overlay.
A mixin to call refresh() on an input widget when the parent form gets reset.
Create stateful jQuery plugins using the same abstraction as all jQuery UI widgets.
Part of the jQuery Widget Factory is the jQuery.widget.bridge() method. This acts as the middleman between the object created by $.widget() and the jQuery API.
Themeable menu with mouse and keyboard interactions for navigation.
Display status of a determinate or indeterminate process.
Duplicates and extends the functionality of a native HTML select element to overcome the limitations of the native control.
Drag a handle to select a numeric value.
Enhance a text input for entering numeric values, with up/down buttons and arrow key handling.
Location: tabs.lisp
A single content area with multiple panels, each associated with a header in a list.
Customizable, themeable tooltips, replacing native tooltips.
Location: ui/
jQuery UI provides a set of mouse-based interactions as building blocks for rich interfaces and complex widgets.
Location: draggable.lisp
Allow elements to be moved using the mouse.
Location: droppable.lisp
Create targets for draggable elements.
The base interaction layer.
Location: resizable.lisp
Change the size of an element using the mouse.
Use the mouse to select elements, individually or in a group.
Reorder elements in a list or grid using the mouse.
Copyright © 2017,2024 Vladimir Mezentsev