Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 744 Bytes

Element-Query.md

File metadata and controls

36 lines (27 loc) · 744 Bytes

Element Query

Allows users to query a scene graph of elements in an XPath-like way.

Find deeply all BrButton children and return the second one:

element query // BrButton  @ 2

Find elements with #label id within the first direct child of type BrButton:

element query / BrButton @ 1 // #label

Depend on it

spec 
   baseline: 'BlocPacElementQuery' with: [
      spec repository: 'github://feenkcom/bloc-pac:main/src' ].

...

spec 
   package: #'MyPackage' with: [
      spec requires: #(#'MyOtherPackage' #BlocPacElementQuery ) ].

Installation

Metacello new
   baseline: 'BlocPacElementQuery';
   repository: 'github://feenkcom/bloc-pac:main/src';
   load