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

The update function does not work with attribute bindings #204

Open
rhessinger opened this issue Feb 21, 2014 · 0 comments
Open

The update function does not work with attribute bindings #204

rhessinger opened this issue Feb 21, 2014 · 0 comments

Comments

@rhessinger
Copy link

Is there any way to bind an update function to an attribute binding? This would be for setting classes. Currently I'm using a jquery plugin called jquery.selectBoxit and when setting a class to the select, I need to bind it to a sibling. Having the ability to set the class through a custom update function will fix the problem. The update function would follow the standard bindings function.

Here is the syntax it tried:

bindings:{
    '#tb-input': {
        observe: 'Input',
        attributes: [
            {
                name: "class", 
                observe: "IsNotDescriptionConfident", 
                onGet: "GetClassStringFnc",
                update: "UpdateClassFnc"
             }]
        }, 
    }
}
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