Skip to content

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

@g105b

Description

@g105b
<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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions