readonly

enables the read-only mode

boolean readonly;

Example

webix.ui({
    view:"comments",
    currentUser:4,
    readonly:true,          data:[
        {
          id:1, user_id:1, date:"2018-06-10 18:45",
          text:"Let's deal with half of the points in the plan without further delays."
        },
        { id:2, user_id:2, date:"2018-06-10 19:40", text:"Yes, let's do it." }
    ],
    users:[
        { id:1, value:"Corvo Attano", image: "./common/imgs/corvo.jpg" },
        { id:2, value:"Daisy Fitzroy", image: "./common/imgs/daisy.jpg" }
    ]
});


Default value:

false
Details

In the read-only mode users can view comments, but cannot add them.

Back to top