Using kirby builder to add new radio-button options from the panel?

Thanks! Really useful to have an idea of how to extend it.

Now I made it work by using Kirby Module + Kirby Sortable + Kirby Builder, and it’s really great. Amazing.

I have encountered a problem while making a custom preview file for Kirby Sortable. I print out the builder structured object, and I choose which kind of builder snippet file to use to create the preview in the panel.

<?php foreach($module->builder()->toStructure() as $section): ?>
  <?php snippet('sections/preview', array('data' => $section)) ?>
<?php endforeach ?>

All the above works. The only thing I could not set is, how to tell the builder to output only the first object of its multi-object collection.

I tried using this approach by @texnixe (Issue with filtering data using structures)

$reviews = $page->children()->visible()->filter(function($p) {       
  return $p->scores()->toStructure()->filterBy('platform', '==', urldecode(param('platform')))->count() > 0;
});

and turned it into

<?php
  $preview = $module->filter(function($p) {
    return $p->builder()->toStructure()->first();
  });
?>

but it does not print out anything.