Web- динамические таблицы из данных json
Исходник
<
link
rel
=
"stylesheet"
media
=
"all"
href
=
"reset.css"
/>
-
<
link
rel
=
"stylesheet"
media
=
"all"
href
=
"bootstrap-2.3.2.min.css"
/>
-
<
link
rel
=
"stylesheet"
media
=
"all"
href
=
"application.css"
/>
-
<
script
type
=
'text/javascript'
src
=
'jquery-1.9.1.min.js'
></
script
>
-
<
link
rel
=
"stylesheet"
media
=
"all"
href
=
"jquery.dynatable.css"
/>
-
<
script
type
=
'text/javascript'
src
=
'jquery.dynatable.js'
></
script
>
-
<
table
id
=
"my-ajax-table"
class
=
"table table-bordered"
>
-
<
thead
>
-
<
th
>Some Attribute</
th
>
-
<
th
>Some Other Attribute</
th
>
-
</
thead
>
-
<
tbody
>
-
</
tbody
>
-
</
table
>
-
<
script
>
-
$.dynatableSetup({ features: { pushState: false } });
-
$('#my-ajax-table').dynatable({
-
features: {
-
paginate: false,
-
sort: false,
-
search: false,
-
perPageSelect: false
-
},
-
dataset: {
-
ajax: true,
-
ajaxUrl: 'dynatable-ajax.json',
-
ajaxOnLoad: true,
-
records: []
-
}
-
});
-
</
script
>
Комментарии