Bloc Pac is a suite of libraries and components to help developers create UI with Bloc.
- Focus Finder: Allows users to find the next or the previous focusable element in a given direction relative to an element or an area.
- Infinite Element: Allows users to create practically infinite scrollable elements such as for example a vertical scrollable list.
- Element Query: Allows users to query a scene graph of elements in an XPath-like way.
Find deeply all children of elements that are instances of BrButton
, 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
Use the following script to installs the project in a Pharo 11:
[ Metacello new
baseline: 'BlocPac';
repository: 'github://pharo-graphics/bloc-pac:dev-1.0/src';
onConflictUseIncoming;
ignoreImage;
load ]
on: MCMergeOrLoadWarning
do: [ :warning | warning load ]
This code is licensed under the MIT license.