public function setButtons(array $buttons)
    {
        $resolver = static::getButtonOptionsResolver();
        $tmp = [];
        foreach ($buttons as $options) {
            $tmp[] = $resolver->resolve($options);
        }
        $this->buttons = $tmp;
        return $this;
    }