/**
  * {@inheritdoc}
  */
 protected function build(Definition $definition, \Model $model, DefinitionMapper $mapper, Filter $filter = null, Definition $parent = null)
 {
     parent::build($definition, $model, $mapper, $filter);
     if ($definition instanceof Path && $model->style) {
         $styleModel = StyleModel::findActiveByPK($model->style);
         if ($styleModel) {
             $style = $mapper->handle($styleModel);
             if ($style instanceof Style) {
                 $style->apply($definition);
             }
         }
     }
     $this->buildPopup($definition, $model, $mapper, $filter);
 }
 /**
  * {@inheritdoc}
  */
 protected function initialize()
 {
     parent::initialize();
     $this->optionsBuilder->addOption('label', 'title');
 }