Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override properties #142

Open
bloodrain777 opened this issue May 22, 2024 · 0 comments
Open

How to override properties #142

bloodrain777 opened this issue May 22, 2024 · 0 comments

Comments

@bloodrain777
Copy link

I have ActiveField class which extends from your
In my class i set properties such as

class ActiveField extends \kartik\form\ActiveField
{
public $hintOptions = ['class' => 'bem-form__hint'];
}

But this option - closed for me, because in your class this props define in construct

'hintOptions' => ['tag' => 'div', 'class' => ['hint-block']],

How to override a class property???

@bloodrain777 bloodrain777 changed the title How to redeclare properties How to override properties May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant