gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

Custom container-tablerow-item template for bs-display view #535

Open oussama-benmahmoud opened 7 years ago

oussama-benmahmoud commented 7 years ago

Hi does anyone knows how to apply a custom container-tablerow-item template for the bootstrap-display view?

"options":
{
   "fields": {
        "mytable": {
             "type": "table",
             "view": "bootstrap-display"
        }
   } 
},
"view": {
   "fields": {
        "/mytable": {
            "templates": {
                 "container-tablerow-item": "#test3"
             }
         }
    }
}

Using the default view which is bootstrap-edit everything works fine, but using the boostrap-display view my custom template won't work and I had the default table-row-item template.