ile yeni satırda çizin DataTables'u uygulayan Meteor Tabular package kullanıyorum. Mongo koleksiyonundan bir tablo oluşturmaya çalışıyorum. ToplamaDizinin her öğesini DataTables (Meteor Tabular)
{
input: Array[365],
output: Array[365],
date: Array[365]
}
I
TabularTables.MyTable = new Tabular.Table({
name: "MyTable",
collection: MyTable,
columns: [
{data: "input", title: "Input", searchable: false},
{data: "output", title: "Output", searchable: false},
{data: "date", title: "Date", searchable: false}
],
order: [[1, "desc"]],
pageLength: 10
});
sorun aşağıdaki kodla Meteor tabloyu tanımlayan formunun bir belge olduğu bu çekildiğinde, yukarı her bir değişken sonunda her 365 elemanlar tek bir hücre, bu yüzden büyük bir satırım var. Her eleman yani bunun oysa
Input Output Date
input[0] output[0] date[0]
input[1] output[1] date[1]
şu anda, ayrı bir satırda oluşturulmasını istediğiniz
Input Output Date
input[0...364] output[0...364] date[0...364]
Verilerinizi {input: ..., output: ..., date: ...} listesine dönüştürmek uygun mu? Bu mümkün (ve tamam) dataTable bunu işlemek için kolay –