定制 mr4-lc/select-birthday 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mr4-lc/select-birthday

最新稳定版本:0.0.2

Composer 安装命令:

composer require mr4-lc/select-birthday

包简介

Laravel form control select birthday

README 文档

README

This is a form control select birthday.

Screenshot

Screenshot 2023-09-11 at 18 03 30 Screenshot 2023-09-11 at 18 03 47

Installation

composer require mr4-lc/select-birthday
php artisan vendor:publish --tag=mr4-lc-select-birthday --force

Configuration

Usage

<script>
    selectAlert = function(e) {
        console.log(e)
    }
</script>
{{-- Form::selectBirthday($name, $value = null, $options = [], $required = false, $onchange = '') --}}
{!! Form::selectBirthday('birthday0', null, [
    'default-year' => 1980,
    'default-month' => 10,
    'default-day' => 7,
]) !!}
{!! Form::selectBirthday('birthday1', '2023-09-10') !!}
{!! Form::selectBirthday(
    'birthday2',
    '1992-09-10',
    [
        'max' => \Carbon\Carbon::now()->subYear(20),
        'min' => \Carbon\Carbon::now()->subYear(200),
    ],
    true,
    'selectAlert',
) !!}
{!! Form::selectBirthday('birthday3', '1992-07-10', ['max' => '2003-09-11', 'min' => '1900-09-11']) !!}
{!! Form::selectBirthday('birthday4', null, [], true) !!}
{!! Form::selectBirthday('birthday5', '1992-09-10', [
    'max' => \Carbon\Carbon::now()->subYear(20),
    'min' => \Carbon\Carbon::now()->subYear(200),
    'class-form-group' => 'form-group mr4-lc-select-birthday',
    'class-form-control-year' => 'form-control year',
    'class-form-label-year' => '',
    'class-form-control-month' => 'form-control month',
    'class-form-label-month' => '',
    'class-form-control-day' => 'form-control day',
    'class-form-label-day' => '',
]) !!}
{!! Form::selectBirthday('birthday6', '1992-09-10', [
    'label' => [
        'year' => '', // Default __('admin.year')
        'month' => '', // Default __('admin.month')
        'day' => '', // Default __('admin.day')
    ],
]) !!}

License

Licensed under The MIT License (MIT).

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-11