Demos
- Chaining
- Native
- Periodical
Slick
- Slick.Finder
Drag and Drop
- Drag.Cart
- Drag.Drop
- Drag.Move
- Drag.Scroll
Effects
- Effects
- Fx.Morph
- Fx.Slide
- Fx.Sort
- Transitions
Events
- Element.Event
- MouseEnter
- MouseWheel
- Element.Delegation
- Element.Event.Pseudos
Request
- Request
- Request.HTML
- Request.JSON
Plugins
- Accordion
- Slider
- Sortables
- Enhanced Forms
Slick.Finder
A new standalone selector engine that is totally slick! And it is the new Selector Engine of MooTools
Reversed Combinators are a classification of combinators that are the reverse of their original. They redirect the flow of
selectors and combinators to travel up the node tree rather than down. Slick implements these by prepending !
to a selector
or combinator.
Try a CSS Selector or pick one of the predefined ones.
CSS Selectors:
-
p, a, label
Matches all paragraph, links and labels -
tr td:first-child
Matches all first td in every row -
input:checked + label
Matches only the next label element where the previous checkbox is checked -
input[name="myCheckbox"] + label
Matches only the next label element where the previous has a name attribute containing "myCheckbox" -
div:contains(Some text)
Checks if an element contains the string "Some text" -
table tr:odd td
Selects all td elements of the odd rows of the table Reversed Combinators:
-
p !> .chapter
Matches a .chapter that is a direct parent of a paragraph -
p ! div.chapter
Matches a div.chapter which is any parent of a paragraph -
a !> strong ! th:nth-child(3) ! table
Give me every TABLE whose third TH contains a STRONG A
The elements we search in:
div.chapter > p
div.chapter > p > strong
A | Simple table | with: table > tr > th:nth-child(3) > strong > a |
---|---|---|
Some | Other | Text |
Some | Other | Text |
Some | Other | Text |
Some | Other | Text |
Some text
div
div