This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I asked Sam about this the other day. He hasn't started documenting widgets yet. Get on IRC and let him know you want it :)
Nice @Shaliem! Sam mentioned to me earlier today that search and pagination functionality will eventually be coming also. That'll be very helpful.
No problem
Other example
title:
label: Invoice
span: right
status:
label: Invoice
span: right
products:
label: Products
type: datagrid
columns:
item:
title: Item
price:
title: Unit price
type: currency
format: s0,0.00
qty:
title: Quantity
type: numeric
total:
title: Total
type: autocomplete
options:
hoi: ss
ss: ss
qq: qq
ff: ff
Last updated
Allright I also have to set the attributes that are jsonable in my Model.
protected $jsonable = ['data'];
Last updated
just to share with you guys what i found so far, here we go to put inside your fields.yaml Note that the field name 'attributes_data' is in json format based on the column name
attributes_data: label: Datas type: datatable columns: attribute_name: title: Attribute name attribute_value: title: Attribute value type: currency format: s0,0.00 qty: title: Quantity # type: numeric total: title: Total type: autocomplete options: hoi: ss ss: ss qq: qq ff: ff
but be aware that the datable does not work properly when used in a relation or pivot form. the data are not saved in database in that situation
1-11 of 11