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

data-bind:class should be able to bind multiple class names #488

Open
g105b opened this issue Feb 26, 2024 · 0 comments
Open

data-bind:class should be able to bind multiple class names #488

g105b opened this issue Feb 26, 2024 · 0 comments
Labels

Comments

@g105b
Copy link
Member

g105b commented Feb 26, 2024

<span data-bind:text="totalWeightString" data-bind:class=":overweight :oversize">0,000</span>
function go(Binder $binder):void {
    $binder->bindKeyValue("overweight", true);
    $binder->bindKeyValue("oversize", true);
}

The above HTML only binds the overweight class, not the oversize. There's no reason this shouldn't bind both.

@g105b g105b added the feature label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant