MinList
Constructor
MinList <id> (Process container, string path_and_name_of_the_property))
Action
Finds the minimum value of a property among a container's elements. The minimum is calculated on each change of the list.Predefined children
- TextProperty:
spec
path and name of the property used for finding the minimum. - DoubleProperty:
output
the minimum value.
Example
use core
use base
use gui
_main_
Component root {
Frame f ("myFrame", 0, 0, 500, 500)
Exit ex (0, 1)
f.close -> ex
List l {
Rectangle r1 (0, 0, 100, 40, 0, 0)
Rectangle r2 (0, 10, 50, 60, 0, 0)
Rectangle r3 (0, 20, 150, 90, 0, 0)
}
MinList min (l, "height")
TextPrinter result
min.output =:> result.input
}