Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Readme issue? #1

Open
gb5256 opened this issue Sep 3, 2018 · 0 comments
Open

Readme issue? #1

gb5256 opened this issue Sep 3, 2018 · 0 comments

Comments

@gb5256
Copy link

gb5256 commented Sep 3, 2018

Hi,

Can you please check your readme?
I think it should be 'checked' instead of 'value'.
Or am I wrong?

// usage without model
echo Switchery::widget([
    'name' => 'is_required', 
    'checked' => $model->is_required, //=> this was 'value'
    'clientOptions' => [
        'color' => '#5FBEAA',
        'secondaryColor' => '#CCCCCC',
        'jackColor' => '#FFFFFF',
    ],
    'clientEvents' => [
        'change' => new JsExpression('function() {
            console.log("Cool! You changed my state.");
        }')
    ]
]);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant