Gantt work like a button or input

I want the Gantt app to has two models. Just like the button: <button disabled="disabled">beDisabled</button;<button>able</button>. It means I want the gantt app can be editable and Uneditable. Please help me, thinks!

I get it. ‘readonly’ can do this. Thinks!