vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

Is there a way to disable a checkboxe inside a checklist? #744

Closed lohxx closed 5 years ago

lohxx commented 5 years ago

I want to disable some checkboxes based on a condition, but i'm not finding a way to do it. Is there someone that can help me?

version: 0.8.1

code:

<a 
           href="#" 
           onaftersave="updateUser()" 
           editable-checklist="obj.roles" 
           e-ng-options="s.value as s.text for s in userService.all_roles"
     > 
     <span ng-bind-html="showRoles()"></span>
  </a>
lohxx commented 5 years ago

I've found a possible solution to this problem, but i need to send a pull request. Could anyone help me with that?

ckosloski commented 5 years ago

What do you need help with?

lohxx commented 5 years ago

I am having some problems to build and run the tests of the project.

ckosloski commented 5 years ago

To build grunt clean jade build

To run http-server

To run the tests: http://localhost:8000/test/e2e/dev-test.html http://127.0.0.1:8080/test/e2e/docs-test.html

To view the site: http://localhost:8000

ckosloski commented 5 years ago

Also info is here https://github.com/vitalets/angular-xeditable/blob/master/CONTRIBUTING.md

lohxx commented 5 years ago

Thanks, i will try to run these steps later!