Decimal.php 458 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Dcat\Admin\Form\Field;
  3. class Decimal extends Text
  4. {
  5. /**
  6. * @see https://github.com/RobinHerbots/Inputmask#options
  7. *
  8. * @var array
  9. */
  10. protected $options = [
  11. 'alias' => 'decimal',
  12. 'rightAlign' => false,
  13. ];
  14. public function render()
  15. {
  16. $this->inputmask($this->options);
  17. $this->prepend('<i class="fa fa-terminal fa-fw"></i>');
  18. return parent::render();
  19. }
  20. }